<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Batch input for Windows preventing new file creation in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Batch-input-for-Windows-preventing-new-file-creation/m-p/229158#M44568</link>
    <description>&lt;P&gt;The forwarder is locking the file.  It's a resource race / contention issue.&lt;/P&gt;

&lt;P&gt;Instead of using batch, use monitor with movePolicy=sinkhole.&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jun 2016 14:33:50 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2016-06-25T14:33:50Z</dc:date>
    <item>
      <title>Batch input for Windows preventing new file creation</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Batch-input-for-Windows-preventing-new-file-creation/m-p/229157#M44567</link>
      <description>&lt;P&gt;We want to set up a process that writes an application log to a batch input where Splunk will ingest the file and then delete it. The problem is the script that is creating the file is not being allowed to create the file with the following error. Each file is uniquely named. The batch input is for a directory. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PS C:\Users\sa-&amp;gt; C:\Users\sa\Desktop\Export_Server_Oper_Reg_Keys_v1.ps1
Add-Content : The process cannot access the file 'C:\Temp\windows_reg_export\regxprt2016-06-24_14.59.txt' because it is being used by another process.
At C:\Users\sa-\Desktop\Export_TU_Server_Oper_Reg_Keys_v1.ps1:63 char:1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\Temp\windows...06-24_14.59.txt:String) [Add-Content], IOException
    + FullyQualifiedErrorId : GetContentWriterIOError,Microsoft.PowerShell.Commands.AddContentCommand
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The script only works if the Splunkforwarder service is stopped. I have never seen this behavior before. Any ideas? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 20:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Batch-input-for-Windows-preventing-new-file-creation/m-p/229157#M44567</guid>
      <dc:creator>ebaileytu</dc:creator>
      <dc:date>2016-06-24T20:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Batch input for Windows preventing new file creation</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Batch-input-for-Windows-preventing-new-file-creation/m-p/229158#M44568</link>
      <description>&lt;P&gt;The forwarder is locking the file.  It's a resource race / contention issue.&lt;/P&gt;

&lt;P&gt;Instead of using batch, use monitor with movePolicy=sinkhole.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2016 14:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Batch-input-for-Windows-preventing-new-file-creation/m-p/229158#M44568</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-06-25T14:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Batch input for Windows preventing new file creation</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Batch-input-for-Windows-preventing-new-file-creation/m-p/229159#M44569</link>
      <description>&lt;P&gt;tried that getting the error message - any other ideas? &lt;/P&gt;

&lt;P&gt;The UF is running as a local admin and the script is being run as a local admin well.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 16:04:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Batch-input-for-Windows-preventing-new-file-creation/m-p/229159#M44569</guid>
      <dc:creator>ebaileytu</dc:creator>
      <dc:date>2016-07-05T16:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Batch input for Windows preventing new file creation</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Batch-input-for-Windows-preventing-new-file-creation/m-p/229160#M44570</link>
      <description>&lt;P&gt;Ended up writing  a wrapper to execute the PS script and using a script input since we could not get this issue resolved. Could not figure how to fix the question above.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 14:23:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Batch-input-for-Windows-preventing-new-file-creation/m-p/229160#M44570</guid>
      <dc:creator>ebaileytu</dc:creator>
      <dc:date>2016-07-12T14:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Batch input for Windows preventing new file creation</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Batch-input-for-Windows-preventing-new-file-creation/m-p/229161#M44571</link>
      <description>&lt;P&gt;We are having the same problem. What do you mean by "writing a wrapper to execute the PS script and using a script input" as the workaround?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 21:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Batch-input-for-Windows-preventing-new-file-creation/m-p/229161#M44571</guid>
      <dc:creator>teresachila</dc:creator>
      <dc:date>2017-05-04T21:07:40Z</dc:date>
    </item>
  </channel>
</rss>

