<?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 Timestamp extraction from log in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-log/m-p/68888#M13929</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;
I am trying to extract time stamp from log file which will help me to use log TimeStamp instead of splunk time stamp. &lt;/P&gt;

&lt;P&gt;I have tried to match the time using regex in props.conf  but the regex is not at all showing the date. I have tried everything but Splunk doesn't recognize the log date. Please guide me as am not an regex expert.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=^\d{4}:\d{1,2}:\d{1,2}-\d{1,2}:\d{1,2}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;sample log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2013:6:18-11:18 -- IP:: 10.121.230.155 REQUEST URI:: &lt;A href="https://community.splunk.com/www.." target="test_blank"&gt;www..&lt;/A&gt;.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 19 Jun 2013 18:29:14 GMT</pubDate>
    <dc:creator>linu1988</dc:creator>
    <dc:date>2013-06-19T18:29:14Z</dc:date>
    <item>
      <title>Timestamp extraction from log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-log/m-p/68888#M13929</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I am trying to extract time stamp from log file which will help me to use log TimeStamp instead of splunk time stamp. &lt;/P&gt;

&lt;P&gt;I have tried to match the time using regex in props.conf  but the regex is not at all showing the date. I have tried everything but Splunk doesn't recognize the log date. Please guide me as am not an regex expert.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=^\d{4}:\d{1,2}:\d{1,2}-\d{1,2}:\d{1,2}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;sample log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2013:6:18-11:18 -- IP:: 10.121.230.155 REQUEST URI:: &lt;A href="https://community.splunk.com/www.." target="test_blank"&gt;www..&lt;/A&gt;.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jun 2013 18:29:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-log/m-p/68888#M13929</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-06-19T18:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction from log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-log/m-p/68889#M13930</link>
      <description>&lt;P&gt;I'm pretty sure you should be editing TIME_FORMAT, not TIME_PREFIX. Not only that, you aren't specifying which fields are year, month, etc. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-log/m-p/68889#M13930</guid>
      <dc:creator>cschmidt0121</dc:creator>
      <dc:date>2020-09-28T14:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction from log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-log/m-p/68890#M13931</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
below gave me the solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;DATE_TIMECONFIG=NONE&lt;BR /&gt;
NO_BINARY_CHECK=1&lt;BR /&gt;
TIME_FORMAT=%y:%m:%d-%H:%M&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-log/m-p/68890#M13931</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2020-09-28T14:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction from log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-log/m-p/68891#M13932</link>
      <description>&lt;P&gt;DATE_TIMECONFIG=NONE this is wrong there is no attribute like that find correct one below&lt;BR /&gt;
DATETIME_CONFIG=NONE&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:07:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-log/m-p/68891#M13932</guid>
      <dc:creator>thambisetty_bal</dc:creator>
      <dc:date>2020-09-29T10:07:32Z</dc:date>
    </item>
  </channel>
</rss>

