<?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 Extract timestamp from the logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-from-the-logs/m-p/360257#M65709</link>
    <description>&lt;P&gt;I've logs where events are not starting with time. Log format is &lt;BR /&gt;
10.100.28.108 - - 2018-04-25--02-31-14 "PUT /mifs/c/i/abc/abc.html?c=1073768600 HTTP/1.1" 200 20 "-" "abc/1.0" 5252&lt;BR /&gt;
 I was trying below but getting error: couldnot use strptime to parse &lt;BR /&gt;
    [ test ]&lt;BR /&gt;
    SHOULD_LINEMERGE=false&lt;BR /&gt;
    NO_BINARY_CHECK=true&lt;BR /&gt;
    TIME_FORMAT=%Y-%m-%d--%H%-M-%S&lt;BR /&gt;
    TIME_PREFIX=\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}\s-\s-&lt;BR /&gt;
    TZ=America/New_York&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:13:55 GMT</pubDate>
    <dc:creator>isha_rastogi</dc:creator>
    <dc:date>2020-09-29T19:13:55Z</dc:date>
    <item>
      <title>Extract timestamp from the logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-from-the-logs/m-p/360257#M65709</link>
      <description>&lt;P&gt;I've logs where events are not starting with time. Log format is &lt;BR /&gt;
10.100.28.108 - - 2018-04-25--02-31-14 "PUT /mifs/c/i/abc/abc.html?c=1073768600 HTTP/1.1" 200 20 "-" "abc/1.0" 5252&lt;BR /&gt;
 I was trying below but getting error: couldnot use strptime to parse &lt;BR /&gt;
    [ test ]&lt;BR /&gt;
    SHOULD_LINEMERGE=false&lt;BR /&gt;
    NO_BINARY_CHECK=true&lt;BR /&gt;
    TIME_FORMAT=%Y-%m-%d--%H%-M-%S&lt;BR /&gt;
    TIME_PREFIX=\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}\s-\s-&lt;BR /&gt;
    TZ=America/New_York&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:13:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-from-the-logs/m-p/360257#M65709</guid>
      <dc:creator>isha_rastogi</dc:creator>
      <dc:date>2020-09-29T19:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extract timestamp from the logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-from-the-logs/m-p/360258#M65710</link>
      <description>&lt;P&gt;Can you try to edit your time_prefix:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\s-\s-
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 10:49:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-from-the-logs/m-p/360258#M65710</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-25T10:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extract timestamp from the logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-from-the-logs/m-p/360259#M65711</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ test ]
SHOULD_LINEMERGE=false
LINE_BREAKER = ([\r\n]+)(?=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(\s+\S+){2}\s)
NO_BINARY_CHECK=true
TIME_FORMAT=%Y-%m-%d--%H%-M-%S
TIME_PREFIX=^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(\s+\S+){2}\s
MAX_TIMESTAMP_LOOKAHEAD = 20
TZ=America/New_York
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 14:27:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-from-the-logs/m-p/360259#M65711</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-25T14:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extract timestamp from the logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-from-the-logs/m-p/360260#M65712</link>
      <description>&lt;P&gt;Can you try this please:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ __auto__learned__ ]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
TIME_FORMAT=%Y-%m-%d--%H-%M-%S
TIME_PREFIX=(\d+\.){3}.\d+(\s-){2}\s
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:09:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-timestamp-from-the-logs/m-p/360260#M65712</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-04-25T15:09:53Z</dc:date>
    </item>
  </channel>
</rss>

