<?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 inputs.conf batch wildcard not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-batch-wildcard-not-working/m-p/551621#M91548</link>
    <description>&lt;P&gt;Here is the inputs.conf entry:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[batch://opt/splunk/var/run/splunk/csv/*.csv]
disabled = false
move_policy = sinkhole
index = test-metrics
sourcetype = metrics_csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, as I monitor /opt/splunk/var/run/splunk/csv/ I see the CSV files are still there, and not getting indexed. This should have been a really simple test, but can't figure out why batch is not working.&lt;/P&gt;&lt;P&gt;If I hardcode a specific CSV file it works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[batch://opt/splunk/var/run/splunk/csv/test.csv]
disabled = false
move_policy = sinkhole
index = test-metrics
sourcetype = metrics_csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But obviously I need it to get all the CSV files, so I should be able to use the wildcard *.csv&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 15:23:31 GMT</pubDate>
    <dc:creator>dbray_sd</dc:creator>
    <dc:date>2021-05-14T15:23:31Z</dc:date>
    <item>
      <title>inputs.conf batch wildcard not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-batch-wildcard-not-working/m-p/551621#M91548</link>
      <description>&lt;P&gt;Here is the inputs.conf entry:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[batch://opt/splunk/var/run/splunk/csv/*.csv]
disabled = false
move_policy = sinkhole
index = test-metrics
sourcetype = metrics_csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, as I monitor /opt/splunk/var/run/splunk/csv/ I see the CSV files are still there, and not getting indexed. This should have been a really simple test, but can't figure out why batch is not working.&lt;/P&gt;&lt;P&gt;If I hardcode a specific CSV file it works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[batch://opt/splunk/var/run/splunk/csv/test.csv]
disabled = false
move_policy = sinkhole
index = test-metrics
sourcetype = metrics_csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But obviously I need it to get all the CSV files, so I should be able to use the wildcard *.csv&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 15:23:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-batch-wildcard-not-working/m-p/551621#M91548</guid>
      <dc:creator>dbray_sd</dc:creator>
      <dc:date>2021-05-14T15:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf batch wildcard not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-batch-wildcard-not-working/m-p/551623#M91549</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/146904"&gt;@dbray_sd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor///opt/splunk/var/run/splunk/csv/*.csv]&lt;/LI-CODE&gt;&lt;P&gt;if doesn't work and on your path are present only csv you can try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor///opt/splunk/var/run/splunk/csv/]&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 May 2021 15:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-batch-wildcard-not-working/m-p/551623#M91549</guid>
      <dc:creator>aasabatini</dc:creator>
      <dc:date>2021-05-14T15:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf batch wildcard not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-batch-wildcard-not-working/m-p/551625#M91551</link>
      <description>&lt;P&gt;I need it to be batch, not monitor.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 16:16:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-batch-wildcard-not-working/m-p/551625#M91551</guid>
      <dc:creator>dbray_sd</dc:creator>
      <dc:date>2021-05-14T16:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf batch wildcard not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-batch-wildcard-not-working/m-p/552549#M91661</link>
      <description>&lt;P&gt;Wow, what a simple typo that was really hard to see until I took the time and ran:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sudo -u splunk /opt/splunk/bin/splunk list inputstatus&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunk/var/run/splunk/csv/test.csv
parent = opt/splunk/var/run/splunk/csv/*.csv
type = File did not match whitelist '^opt\/splunk\/var\/run\/splunk\/csv/[^/]*\.csv$'. &lt;/LI-CODE&gt;&lt;P&gt;That little ^opt at the beginning showed me that I was missing an extra "/" in:&lt;/P&gt;&lt;P&gt;[batch://opt/splunk/var/run/splunk/csv/*.csv]&lt;/P&gt;&lt;P&gt;It should be:&lt;/P&gt;&lt;P&gt;[batch://&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;/&lt;/FONT&gt;&lt;/STRONG&gt;opt/splunk/var/run/splunk/csv/*.csv]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, all good to go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 11:16:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-batch-wildcard-not-working/m-p/552549#M91661</guid>
      <dc:creator>dbray_sd</dc:creator>
      <dc:date>2021-05-21T11:16:16Z</dc:date>
    </item>
  </channel>
</rss>

