<?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: splunk extract incorrect time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/splunk-extract-incorrect-time/m-p/315457#M59023</link>
    <description>&lt;P&gt;See this&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/303/whats-max-events-i-can-have-timestamped-with-a-particular-second-millisecond.html"&gt;https://answers.splunk.com/answers/303/whats-max-events-i-can-have-timestamped-with-a-particular-second-millisecond.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2017 14:57:01 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-05-23T14:57:01Z</dc:date>
    <item>
      <title>splunk extract incorrect time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-extract-incorrect-time/m-p/315455#M59021</link>
      <description>&lt;P&gt;Hi,everyone.&lt;/P&gt;

&lt;P&gt;My raw log is like this:&lt;BR /&gt;
2017-05-22 01:00:01 dst:100.100.100.2 src:118.32.120.110 port:60046 count:6&lt;BR /&gt;
2017-05-22 01:00:01 dst:100.100.100.2 src:118.32.120.91 port:38026 count:2&lt;BR /&gt;
2017-05-22 01:00:01 dst:100.100.100.2 src:118.43.104.16 port:33967 count:2&lt;BR /&gt;
2017-05-22 01:00:01 dst:100.100.100.2 src:119.1.109.17 port:43973 count:3&lt;/P&gt;

&lt;P&gt;And the count of raw log is 409767.&lt;BR /&gt;
All of the time is 2017/05/22 01:00:01 in raw log.&lt;BR /&gt;
But splunk extract timestamp is 2017/05/22 01:00:01    2017/05/22 01:00:02  2017/05/22 01:00:03 2017/05/22 01:00:04  2017/05/22 01:00:05&lt;BR /&gt;
I use this search comand  "sourcetype=test  |stats count by _time",and got this result.&lt;BR /&gt;
_time   count&lt;BR /&gt;
2017/05/22 01:00:01 100000&lt;BR /&gt;
2017/05/22 01:00:02 100000&lt;BR /&gt;
2017/05/22 01:00:03 100000&lt;BR /&gt;
2017/05/22 01:00:04 100000&lt;BR /&gt;
2017/05/22 01:00:05 9767&lt;/P&gt;

&lt;P&gt;I have set TIME_FORMAT=%Y-%m-%d %H:%M:%S  in props.conf,but doesn`t work.&lt;BR /&gt;
I also use this  "sourcetype=test | fieldformat _time=strftime(_time,"%Y-%m-%d %H:%M:%S") "&lt;BR /&gt;
The timestamp return aN/NaN/NaN NaN:NaN:NaN.000&lt;BR /&gt;
Anyone know how to solve this issue?&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:14:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-extract-incorrect-time/m-p/315455#M59021</guid>
      <dc:creator>perlish</dc:creator>
      <dc:date>2020-09-29T14:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: splunk extract incorrect time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-extract-incorrect-time/m-p/315456#M59022</link>
      <description>&lt;P&gt;The time format logic should Work. Just tested as below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults | eval _time="2017-05-22 01:00:01" | eval myEpoch=strptime(_time,"%Y-%m-%d %H:%M:%S")| eval reConvertTime=strftime(myEpoch,"%FT%T")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your props Try putting and restarting Splunk&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%Y-%m-%d %H:%M:%S
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD=32
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 May 2017 14:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-extract-incorrect-time/m-p/315456#M59022</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2017-05-23T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: splunk extract incorrect time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-extract-incorrect-time/m-p/315457#M59023</link>
      <description>&lt;P&gt;See this&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/303/whats-max-events-i-can-have-timestamped-with-a-particular-second-millisecond.html"&gt;https://answers.splunk.com/answers/303/whats-max-events-i-can-have-timestamped-with-a-particular-second-millisecond.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 14:57:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-extract-incorrect-time/m-p/315457#M59023</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-23T14:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: splunk extract incorrect time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-extract-incorrect-time/m-p/315458#M59024</link>
      <description>&lt;P&gt;Props you have defined, is it under search or your custom app?&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 17:10:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-extract-incorrect-time/m-p/315458#M59024</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2017-05-23T17:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: splunk extract incorrect time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-extract-incorrect-time/m-p/315459#M59025</link>
      <description>&lt;P&gt;Solved. Thank you so much.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 01:59:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-extract-incorrect-time/m-p/315459#M59025</guid>
      <dc:creator>perlish</dc:creator>
      <dc:date>2017-05-24T01:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: splunk extract incorrect time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-extract-incorrect-time/m-p/315460#M59026</link>
      <description>&lt;P&gt;Still doesn`t work, it should be splunk limit.&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/303/whats-max-events-i-can-have-timestamped-with-a-particular-second-millisecond.html"&gt;https://answers.splunk.com/answers/303/whats-max-events-i-can-have-timestamped-with-a-particular-second-millisecond.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 02:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-extract-incorrect-time/m-p/315460#M59026</guid>
      <dc:creator>perlish</dc:creator>
      <dc:date>2017-05-24T02:00:03Z</dc:date>
    </item>
  </channel>
</rss>

