<?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 Time Prefix Question in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Time-Prefix-Question/m-p/460615#M79513</link>
    <description>&lt;P&gt;Hello All&lt;/P&gt;

&lt;P&gt;I have a time prefix question&lt;/P&gt;

&lt;P&gt;Here is my timestamp&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;May 20 10:59:30 svr-orw-nac-01 2020-05-20 17:59:30,646
May 20 11:01:01 svr-ies-nac-02 2020-05-20 18:01:01,389
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am setting props.conf to be the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/var/log2/gns/nac/log_*]
MAX_TIMESTAMP_LOOKAHEAD = 31
TIME_PREFIX = ^\w+\s\d+\s\d+:\d+:\d+\ssvr-.*-nac-\d[01|02]\s
TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does this look right?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
ed&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2020 18:47:14 GMT</pubDate>
    <dc:creator>edwardrose</dc:creator>
    <dc:date>2020-05-20T18:47:14Z</dc:date>
    <item>
      <title>Time Prefix Question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-Prefix-Question/m-p/460615#M79513</link>
      <description>&lt;P&gt;Hello All&lt;/P&gt;

&lt;P&gt;I have a time prefix question&lt;/P&gt;

&lt;P&gt;Here is my timestamp&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;May 20 10:59:30 svr-orw-nac-01 2020-05-20 17:59:30,646
May 20 11:01:01 svr-ies-nac-02 2020-05-20 18:01:01,389
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am setting props.conf to be the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/var/log2/gns/nac/log_*]
MAX_TIMESTAMP_LOOKAHEAD = 31
TIME_PREFIX = ^\w+\s\d+\s\d+:\d+:\d+\ssvr-.*-nac-\d[01|02]\s
TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does this look right?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
ed&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 18:47:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-Prefix-Question/m-p/460615#M79513</guid>
      <dc:creator>edwardrose</dc:creator>
      <dc:date>2020-05-20T18:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Time Prefix Question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-Prefix-Question/m-p/460616#M79514</link>
      <description>&lt;P&gt;Hello @edwardrose,&lt;/P&gt;

&lt;P&gt;small corrections:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^\w+\s\d+\s\d+:\d+:\d+\ssvr\-\w+\-nac-(01|02)\s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it is better to use &lt;CODE&gt;\w+&lt;/CODE&gt; instead of &lt;CODE&gt;.*&lt;/CODE&gt; - the first requires 58 steps instead of 126 steps, compare:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/cOQ2a2/1"&gt;https://regex101.com/r/cOQ2a2/1&lt;/A&gt; - 126 steps&lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/cOQ2a2/2"&gt;https://regex101.com/r/cOQ2a2/2&lt;/A&gt; - 58 steps&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 21:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-Prefix-Question/m-p/460616#M79514</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-05-20T21:56:30Z</dc:date>
    </item>
  </channel>
</rss>

