<?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: Why are wildcards not working when configuring the source path in inputs.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-wildcards-not-working-when-configuring-the-source-path/m-p/458540#M79243</link>
    <description>&lt;P&gt;In that case, could you please add 2 "Files &amp;amp; Directories", 1st with &lt;CODE&gt;C:\\Splunkfiles\\faturamentoSAP\\splunk\.\d{14}\_1.csv&lt;/CODE&gt; and sourcetype &lt;CODE&gt;sourcetype_1&lt;/CODE&gt; &amp;amp; 2nd with &lt;CODE&gt;C:\\Splunkfiles\\faturamentoSAP\\splunk\.\d{14}\_2.csv&lt;/CODE&gt; and sourcetype &lt;CODE&gt;sourcetype_2&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I had never tried using GUI but you can give it a try.&lt;/P&gt;</description>
    <pubDate>Sat, 15 Sep 2018 18:00:53 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2018-09-15T18:00:53Z</dc:date>
    <item>
      <title>Why are wildcards not working when configuring the source path in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-wildcards-not-working-when-configuring-the-source-path/m-p/458537#M79240</link>
      <description>&lt;P&gt;I am facing issues with using wildcards in my input.conf file.&lt;/P&gt;

&lt;P&gt;I am monitoring the same directory where 2 different files are being generated, and each one should be indexed in different source types.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Path: C:\Splunkfiles\faturamentoSAP\
File 1: splunk.YYYYMMDDHHMMSS_1.CSV
File 2: splunk.YYYYMMDDHHMMSS_2.CSV
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The file 1 should be indexed in sourcetype 1, and file 2 should be indexed in sourcetype 2.&lt;/P&gt;

&lt;P&gt;I have configured both sourcepath in "Data inputs » Files &amp;amp; directories" like below, but it is not working:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\Splunkfiles\faturamentoSAP\*1.CSV
C:\Splunkfiles\faturamentoSAP\*2.CSV
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I configure as "C:\Splunkfiles\faturamentoSAP" , it is bringing both files to the same source type, but that is not what i want.&lt;/P&gt;

&lt;P&gt;How do I configure the source path using wildcards?&lt;/P&gt;

&lt;P&gt;Many thanks and regards.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2018 15:08:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-wildcards-not-working-when-configuring-the-source-path/m-p/458537#M79240</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2018-09-15T15:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why are wildcards not working when configuring the source path in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-wildcards-not-working-when-configuring-the-source-path/m-p/458538#M79241</link>
      <description>&lt;P&gt;Hi @danillopavan,&lt;/P&gt;

&lt;P&gt;If you have splunk server access in that case you can modify inputs.conf directly with below configuration.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\\Splunkfiles\\faturamentoSAP\\]
whitelist = splunk\.\d{14}\_(?:1|2).csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and props.conf as below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::C:\\Splunkfiles\\faturamentoSAP\\splunk.*1.csv]
sourcetype = sourcetype_1

[source::C:\\Splunkfiles\\faturamentoSAP\\splunk.*2.csv]
sourcetype = sourcetype_2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then restart splunk service.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2018 17:21:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-wildcards-not-working-when-configuring-the-source-path/m-p/458538#M79241</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-09-15T17:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why are wildcards not working when configuring the source path in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-wildcards-not-working-when-configuring-the-source-path/m-p/458539#M79242</link>
      <description>&lt;P&gt;Hello @harsmarvania57, thanks for your reply but in this moment i dont have backend server access.&lt;/P&gt;

&lt;P&gt;Thanks and regards&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2018 17:35:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-wildcards-not-working-when-configuring-the-source-path/m-p/458539#M79242</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2018-09-15T17:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why are wildcards not working when configuring the source path in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-wildcards-not-working-when-configuring-the-source-path/m-p/458540#M79243</link>
      <description>&lt;P&gt;In that case, could you please add 2 "Files &amp;amp; Directories", 1st with &lt;CODE&gt;C:\\Splunkfiles\\faturamentoSAP\\splunk\.\d{14}\_1.csv&lt;/CODE&gt; and sourcetype &lt;CODE&gt;sourcetype_1&lt;/CODE&gt; &amp;amp; 2nd with &lt;CODE&gt;C:\\Splunkfiles\\faturamentoSAP\\splunk\.\d{14}\_2.csv&lt;/CODE&gt; and sourcetype &lt;CODE&gt;sourcetype_2&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I had never tried using GUI but you can give it a try.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2018 18:00:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-wildcards-not-working-when-configuring-the-source-path/m-p/458540#M79243</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-09-15T18:00:53Z</dc:date>
    </item>
  </channel>
</rss>

