<?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: index on regex field from source in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14080#M1375</link>
    <description>&lt;P&gt;Thank you!   &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 May 2010 22:50:18 GMT</pubDate>
    <dc:creator>hiddenkirby</dc:creator>
    <dc:date>2010-05-24T22:50:18Z</dc:date>
    <item>
      <title>index on regex field from source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14073#M1368</link>
      <description>&lt;P&gt;I have a dir of text files named like such
    scriptcalled_201005211317_stdout.txt&lt;/P&gt;

&lt;P&gt;how do i index them on that date?  I understand splunk already tries to pull the date from the source.. but if i can specify a regex i would prefer that... and i think it would be faster.&lt;/P&gt;

&lt;P&gt;TIA,&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2010 02:28:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14073#M1368</guid>
      <dc:creator>hiddenkirby</dc:creator>
      <dc:date>2010-05-22T02:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: index on regex field from source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14074#M1369</link>
      <description>&lt;P&gt;Timestamp extraction from source is controlled in the &lt;CODE&gt;$SPLUNK_HOME/etc/datetime.xml&lt;/CODE&gt; file.  Search the file for "&lt;CODE&gt;source::&lt;/CODE&gt;" and you'll see the formats supported.&lt;/P&gt;

&lt;P&gt;I think this is your only option.  And regexes are definitely involved, although probably not in the way you were thinking.&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2010 03:39:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14074#M1369</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-05-22T03:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: index on regex field from source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14075#M1370</link>
      <description>&lt;P&gt;can i create a _masheddate3 w/ my very specific regex?&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2010 04:30:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14075#M1370</guid>
      <dc:creator>hiddenkirby</dc:creator>
      <dc:date>2010-05-22T04:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: index on regex field from source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14076#M1371</link>
      <description>&lt;P&gt;or would i do something similar to this in props.conf  [source::/Applications/splunk/var/spool/splunk] &lt;BR /&gt;
TIME_PREFIX = &lt;EM&gt;\d{14}&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14076#M1371</guid>
      <dc:creator>hiddenkirby</dc:creator>
      <dc:date>2020-09-28T09:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: index on regex field from source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14077#M1372</link>
      <description>&lt;P&gt;or even something ot format it? &lt;BR /&gt;
[source::/Applications/splunk/var/spool/splunk] TIME_PREFIX = &lt;EM&gt;(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})&lt;/EM&gt; FORMAT = $1/$2/$3 $4:$5:$6&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14077#M1372</guid>
      <dc:creator>hiddenkirby</dc:creator>
      <dc:date>2020-09-28T09:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: index on regex field from source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14078#M1373</link>
      <description>&lt;P&gt;i found &lt;A href="http://www.splunk.com/base/Documentation/4.1.2/Admin/TrainSplunkToRecognizeATimestamp"&gt;http://www.splunk.com/base/Documentation/4.1.2/Admin/TrainSplunkToRecognizeATimestamp&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;i'll try to create my own datetime.xml  &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2010 04:44:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14078#M1373</guid>
      <dc:creator>hiddenkirby</dc:creator>
      <dc:date>2010-05-22T04:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: index on regex field from source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14079#M1374</link>
      <description>&lt;P&gt;See here: &lt;A href="http://blogs.splunk.com/2009/12/02/configure-splunk-to-pull-a-date-out-of-a-non-standard-filename/" rel="nofollow"&gt;http://blogs.splunk.com/2009/12/02/configure-splunk-to-pull-a-date-out-of-a-non-standard-filename/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The default Splunk settings do many different formats, but you can be as specific as you like.&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2010 08:00:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14079#M1374</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-05-22T08:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: index on regex field from source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14080#M1375</link>
      <description>&lt;P&gt;Thank you!   &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2010 22:50:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14080#M1375</guid>
      <dc:creator>hiddenkirby</dc:creator>
      <dc:date>2010-05-24T22:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: index on regex field from source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14081#M1376</link>
      <description>&lt;P&gt;see &lt;A href="http://answers.splunk.com/questions/3055/creating-a-masheddate3-in-datetime-xml/"&gt;http://answers.splunk.com/questions/3055/creating-a-masheddate3-in-datetime-xml/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2010 04:10:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-on-regex-field-from-source/m-p/14081#M1376</guid>
      <dc:creator>hiddenkirby</dc:creator>
      <dc:date>2010-05-28T04:10:23Z</dc:date>
    </item>
  </channel>
</rss>

