<?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 write regex for path in inputs.conf? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-for-path-in-inputs-conf/m-p/196999#M56874</link>
    <description>&lt;P&gt;Thank you everyone for responding, above solutions worked for me.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Aug 2014 12:32:21 GMT</pubDate>
    <dc:creator>anoopambli</dc:creator>
    <dc:date>2014-08-29T12:32:21Z</dc:date>
    <item>
      <title>How to write regex for path in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-for-path-in-inputs-conf/m-p/196994#M56869</link>
      <description>&lt;P&gt;I need to configure inputs.conf for forwarding a file like below,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;G:\BlackBerry Enterprise Server\Logs\20140827\MCLCOVBB61VWIN_MAGT_01_20140827_0001.txt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my inputs.conf looks like this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://G:\BlackBerry Enterprise Server\Logs\%Y%m%d\*_MAGT_*_%Y%m%d_*.txt]
disabled = false
followTail = 0
index = coreops
sourcetype = bes_magt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Anything iam doing wrong here, i dont see data coming into splunk, how do i check whether the given regex is parsing out for the right log file?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 15:07:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-for-path-in-inputs-conf/m-p/196994#M56869</guid>
      <dc:creator>anoopambli</dc:creator>
      <dc:date>2014-08-27T15:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex for path in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-for-path-in-inputs-conf/m-p/196995#M56870</link>
      <description>&lt;P&gt;On the forwarder, execute splunk list monitor command and see if the expected files are being monitered.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 15:48:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-for-path-in-inputs-conf/m-p/196995#M56870</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2014-08-27T15:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex for path in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-for-path-in-inputs-conf/m-p/196996#M56871</link>
      <description>&lt;P&gt;looks like it is not understanding date variables in the folder path. After running that command, this is what i see in the output,&lt;/P&gt;

&lt;P&gt;Monitored Files:&lt;BR /&gt;
        $SPLUNK_HOME\etc\splunk.version&lt;BR /&gt;
        G:\BlackBerry Enterprise Server\Logs\%Y%m%d\&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 16:14:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-for-path-in-inputs-conf/m-p/196996#M56871</guid>
      <dc:creator>anoopambli</dc:creator>
      <dc:date>2014-08-27T16:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex for path in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-for-path-in-inputs-conf/m-p/196997#M56872</link>
      <description>&lt;P&gt;You should probably try something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://g:\blackberry enterprise server\logs\*\*MAGT*.txt]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Strptime date variables are not supported in monitor-stanzas.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 18:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-for-path-in-inputs-conf/m-p/196997#M56872</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-08-27T18:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex for path in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-for-path-in-inputs-conf/m-p/196998#M56873</link>
      <description>&lt;P&gt;And you can add whitelist attribute to index files with specific regex.&lt;/P&gt;

&lt;P&gt;e.g. &lt;/P&gt;

&lt;P&gt;[monitor://g:\blackberry enterprise server\logs\*\*MAGT*.txt]&lt;BR /&gt;
...&lt;BR /&gt;
whitelist = *_MAGT_*_\d{8}_*.txt$&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 20:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-for-path-in-inputs-conf/m-p/196998#M56873</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-27T20:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex for path in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-for-path-in-inputs-conf/m-p/196999#M56874</link>
      <description>&lt;P&gt;Thank you everyone for responding, above solutions worked for me.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2014 12:32:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-for-path-in-inputs-conf/m-p/196999#M56874</guid>
      <dc:creator>anoopambli</dc:creator>
      <dc:date>2014-08-29T12:32:21Z</dc:date>
    </item>
  </channel>
</rss>

