<?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: How to use batch in inputs.conf file to upload files? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-batch-in-inputs-conf-file-to-upload-files/m-p/601751#M104832</link>
    <description>&lt;P&gt;See the batch stanza configs below:&lt;/P&gt;&lt;PRE&gt;Use the 'batch' input for large archives of historic data. If you
want to continuously monitor a directory or index small archives, use 'monitor'
(see the MONITOR section). 'batch' reads in the file and indexes it, and then
deletes the file on disk.

[batch://&amp;lt;path&amp;gt;]
* A one-time, destructive input of files in &amp;lt;path&amp;gt;.
* This stanza must include the 'move_policy = sinkhole' setting.
* This input reads and indexes the files, then DELETES THEM IMMEDIATELY.
* For continuous, non-destructive inputs of files, use 'monitor' instead.&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/inputsconf#BATCH_.28.22Upload_a_file.22_in_Splunk_Web.29" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/inputsconf#BATCH_.28.22Upload_a_file.22_in_Splunk_Web.29&lt;/A&gt;:&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 15:26:53 GMT</pubDate>
    <dc:creator>m_pham</dc:creator>
    <dc:date>2022-06-14T15:26:53Z</dc:date>
    <item>
      <title>How to use batch in inputs.conf file to upload files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-batch-in-inputs-conf-file-to-upload-files/m-p/601582#M104808</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have some use cases where we need to delete files right after those are read/push by UF. How I would do it. There are any ways we may let the UF to do this task using batch in inputs.conf file. Any recommendation would be highly appreciated, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 20:31:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-batch-in-inputs-conf-file-to-upload-files/m-p/601582#M104808</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-06-13T20:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use batch in inputs.conf file to upload files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-batch-in-inputs-conf-file-to-upload-files/m-p/601751#M104832</link>
      <description>&lt;P&gt;See the batch stanza configs below:&lt;/P&gt;&lt;PRE&gt;Use the 'batch' input for large archives of historic data. If you
want to continuously monitor a directory or index small archives, use 'monitor'
(see the MONITOR section). 'batch' reads in the file and indexes it, and then
deletes the file on disk.

[batch://&amp;lt;path&amp;gt;]
* A one-time, destructive input of files in &amp;lt;path&amp;gt;.
* This stanza must include the 'move_policy = sinkhole' setting.
* This input reads and indexes the files, then DELETES THEM IMMEDIATELY.
* For continuous, non-destructive inputs of files, use 'monitor' instead.&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/inputsconf#BATCH_.28.22Upload_a_file.22_in_Splunk_Web.29" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/inputsconf#BATCH_.28.22Upload_a_file.22_in_Splunk_Web.29&lt;/A&gt;:&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 15:26:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-batch-in-inputs-conf-file-to-upload-files/m-p/601751#M104832</guid>
      <dc:creator>m_pham</dc:creator>
      <dc:date>2022-06-14T15:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use batch in inputs.conf file to upload files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-batch-in-inputs-conf-file-to-upload-files/m-p/601772#M104835</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you so much for your response and truly appreciate it.&lt;/P&gt;&lt;P&gt;Do you think following is the typical structure for inputs.conf file using batch and going to work?&amp;nbsp;&lt;/P&gt;&lt;P&gt;[batch:///home/mydatafolder/*.log]&lt;/P&gt;&lt;P&gt;disabled = false&lt;/P&gt;&lt;P&gt;index = myindex&lt;/P&gt;&lt;P&gt;sourcetype = mysourcetpye&lt;/P&gt;&lt;P&gt;move_policy = sinkhole&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your recommendation will be highly appreciated, thank you so much again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-batch-in-inputs-conf-file-to-upload-files/m-p/601772#M104835</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-06-14T17:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use batch in inputs.conf file to upload files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-batch-in-inputs-conf-file-to-upload-files/m-p/601773#M104836</link>
      <description>&lt;P&gt;It should work fine. Since the logs will be deleted, best you double check the file path and index/sourcetype names.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:50:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-batch-in-inputs-conf-file-to-upload-files/m-p/601773#M104836</guid>
      <dc:creator>m_pham</dc:creator>
      <dc:date>2022-06-14T17:50:36Z</dc:date>
    </item>
  </channel>
</rss>

