<?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: Please help me Time_PREFIX in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-Time-PREFIX/m-p/425106#M74535</link>
    <description>&lt;P&gt;@karn, you seem to have a whitespace before first timestamp. If that is actually present in your logs you should try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%b %d %H:%M:%S
TIME_PREFIX=^\s+\w+\s\d+\s\d+\:\d+\:\d+\s\d+\.\d+\.\d+\.\d+\s
MAX_TIMESTAMP_LOOKAHEAD=15
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Jul 2018 13:55:38 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-07-03T13:55:38Z</dc:date>
    <item>
      <title>Please help me Time_PREFIX</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-Time-PREFIX/m-p/425104#M74533</link>
      <description>&lt;P&gt;I have logs that send from syslog server, so there are 2 timestamps. I would like to use 2nd timestamp to be _time by using TIME_PREFIX. However, it doesn't match if the log come from syslog. It's match if using monitor file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Jun 15 10:06:58 10.226.48.229 Jun 15 10:06:59 111.111.111.111 1 2018-06-15T10:06:51.424243+07:00 node01 kernel - - - [9079188.370611] RULE 0 -- ACCEPT IN=eth1 OUT=eth2 MAC=00:50:56:a0:e4:fa:00:50:56:b6:0a:53:08:00 SRC=10.60.0.3 DST=10.99.2.198 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=13091 DF PROTO=TCP SPT=55646 DPT=80 WINDOW=5840 RES=0x00 SYN URGP=0 

Jun 15 10:06:58 10.226.48.229 Jun 15 10:06:51 111.111.111.111 haproxy[3645]: 1.46.134.132:2195 [15/Jun/2018:10:06:51.292] https-web~ https-backend/www01 116/0/12/3/131 404 424 - - ---- 3/3/0/0/0 0/0 "GET /favicon.ico HTTP/1.1"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My props.conf is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
TIME_PREFIX = ^\w+\s\d+\s\d+\:\d+\:\d+\s\d+\.\d+\.\d+\.\d+\s
MAX_TIMESTAMP_LOOKAHEAD = 16
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:18:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-Time-PREFIX/m-p/425104#M74533</guid>
      <dc:creator>karn</dc:creator>
      <dc:date>2020-09-29T20:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me Time_PREFIX</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-Time-PREFIX/m-p/425105#M74534</link>
      <description>&lt;P&gt;Which line is the &lt;CODE&gt;syslog&lt;/CODE&gt;? &lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 13:51:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-Time-PREFIX/m-p/425105#M74534</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-07-03T13:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me Time_PREFIX</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-Time-PREFIX/m-p/425106#M74535</link>
      <description>&lt;P&gt;@karn, you seem to have a whitespace before first timestamp. If that is actually present in your logs you should try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%b %d %H:%M:%S
TIME_PREFIX=^\s+\w+\s\d+\s\d+\:\d+\:\d+\s\d+\.\d+\.\d+\.\d+\s
MAX_TIMESTAMP_LOOKAHEAD=15
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Jul 2018 13:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-Time-PREFIX/m-p/425106#M74535</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-07-03T13:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me Time_PREFIX</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-Time-PREFIX/m-p/425107#M74536</link>
      <description>&lt;P&gt;You can work interactively with the site. Something like -&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5328iB78342652F6CE7DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 13:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Please-help-me-Time-PREFIX/m-p/425107#M74536</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-07-03T13:59:19Z</dc:date>
    </item>
  </channel>
</rss>

