<?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 Time stamp Error in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16446#M1981</link>
    <description>&lt;P&gt;don't think its quite that simple. There is really nothing you can do with a regex to solve this problem; you can't add/subtract with a regex.  Also, since the log file includes some timezone info, we should probably attempt to use it in &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; if at all possible, unless it's buggy.  (BTW, the splunk docs you linked to (3.0.2) are very old at this point, 4.1.3 is the "latest" right now.)&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2010 23:57:22 GMT</pubDate>
    <dc:creator>Lowell</dc:creator>
    <dc:date>2010-06-29T23:57:22Z</dc:date>
    <item>
      <title>Splunk Time stamp Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16441#M1976</link>
      <description>&lt;P&gt;Hey Gurus!&lt;/P&gt;

&lt;P&gt;I am processing F/W log such as below which I recieve through syslog server.&lt;/P&gt;

&lt;P&gt;2010-06-29T20:48:26.742950+10:00 10.91.30.1 1&lt;CODE&gt;0&lt;/CODE&gt;1&lt;CODE&gt;1&lt;/CODE&gt;0decf4&lt;CODE&gt;20100629&lt;/CODE&gt;20: 49:10&lt;CODE&gt;Deny&lt;/CODE&gt;17&lt;CODE&gt;090223182612&lt;/CODE&gt;192.168.100.1&lt;CODE&gt;1024&lt;/CODE&gt;10.91.50.43&lt;CODE&gt;514&lt;/CODE&gt;eth0&lt;CODE&gt;eth5````197&lt;/CODE&gt;1```&lt;/P&gt;

&lt;P&gt;I am using rsyslogd daemon to process syslog packets, and somehow in the date field it looks like this,&lt;/P&gt;

&lt;P&gt;2010-06-29T20:48:26&lt;/P&gt;

&lt;P&gt;You realize that there is "T" in between the date and time.
I don;t know if this is the cause but Splunk seems to process the date as 1 hour behind.&lt;/P&gt;

&lt;P&gt;2010-06-29 07:48:26 PM  in splunk.&lt;/P&gt;

&lt;P&gt;Instead of &lt;/P&gt;

&lt;P&gt;2010-06-29 08:48:26 PM &lt;/P&gt;

&lt;P&gt;Have anybody seen similar problem?  How can I fix it?&lt;/P&gt;

&lt;P&gt;YhC.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 18:53:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16441#M1976</guid>
      <dc:creator>clyde772</dc:creator>
      <dc:date>2010-06-29T18:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time stamp Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16442#M1977</link>
      <description>&lt;P&gt;Are you sure this isn't a timezone issue?   Are you +10?  if you could post the value of &lt;CODE&gt;date_zone&lt;/CODE&gt; field for your indexed events, that would help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 22:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16442#M1977</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-06-29T22:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time stamp Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16443#M1978</link>
      <description>&lt;P&gt;Does your event literally contain a bunch of  backticks ("`"), or is that for formatting your event?   (Try indenting your sample by 4 spaces if you want to capture a literal string.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 22:17:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16443#M1978</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-06-29T22:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time stamp Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16444#M1979</link>
      <description>&lt;P&gt;What's your &lt;CODE&gt;props.conf&lt;/CODE&gt; entry for this source/sourcetype?  Do you have a &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; specified, or is splunk automatically extracting timestamps?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 22:46:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16444#M1979</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-06-29T22:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time stamp Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16445#M1980</link>
      <description>&lt;P&gt;To answer Lowell's question I believe Splunk is extracting the time automatically. If he is specifying the TIME_FORMAT the adding of 1hour can be avoided easily I believe - by just writing the regular expression&lt;/P&gt;

&lt;P&gt;You could extract the time manually by adding a few things in the props.conf file. Something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;sourcetype&amp;gt;]
TIME_FORMAT=%Y-%m-%dT%H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I just did the same thing yesterday because Splunk wasn't extracting the timestamps correctly&lt;/P&gt;

&lt;P&gt;more info here
&lt;A href="http://www.splunk.com/base/Documentation/3.0.2/Admin/Propsconf" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/3.0.2/Admin/Propsconf&lt;/A&gt;&lt;BR /&gt;
and here about the time formatting
&lt;A href="http://apidock.com/ruby/DateTime/strftime" rel="nofollow"&gt;http://apidock.com/ruby/DateTime/strftime&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 23:12:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16445#M1980</guid>
      <dc:creator>hiwell</dc:creator>
      <dc:date>2010-06-29T23:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time stamp Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16446#M1981</link>
      <description>&lt;P&gt;don't think its quite that simple. There is really nothing you can do with a regex to solve this problem; you can't add/subtract with a regex.  Also, since the log file includes some timezone info, we should probably attempt to use it in &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; if at all possible, unless it's buggy.  (BTW, the splunk docs you linked to (3.0.2) are very old at this point, 4.1.3 is the "latest" right now.)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 23:57:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16446#M1981</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-06-29T23:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time stamp Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16447#M1982</link>
      <description>&lt;P&gt;Yeah you can't remove that T with it.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2010 01:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16447#M1982</guid>
      <dc:creator>hiwell</dc:creator>
      <dc:date>2010-06-30T01:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time stamp Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16448#M1983</link>
      <description>&lt;P&gt;No, actually you can remove the "T" with a regex, but that kind of transformation happens after timestamp recognition so you would have keep the "T" in &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;....  But my point was that you can't modify the timestamp with a regex prior to the timestamping process and even if you could, you can't use a regex to do arithmetic; thus you can't change the time +/- an hour.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2010 02:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16448#M1983</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-06-30T02:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time stamp Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16449#M1984</link>
      <description>&lt;P&gt;If you haven't tried using an explicit &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; in your &lt;CODE&gt;props.conf&lt;/CODE&gt; file for this sourcetype, then I would suggest that you try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6N%z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If this doesn't work for you, then you may need to hardcode a timezone using the &lt;CODE&gt;TZ&lt;/CODE&gt; setting in your &lt;CODE&gt;props.conf&lt;/CODE&gt; file.  If you end up using a custom timezone, then you may need to remove the &lt;CODE&gt;%z&lt;/CODE&gt; from the above, I'm not sure how that works exactly.  Another consideration is this:  With the daylight savings changes (aka timezone changes) in the last couple of years, it's possible that whatever app that is creating this log has an old timezone table that could be out of date--just another possibility to consider.&lt;/P&gt;

&lt;P&gt;Docs:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Applytimezoneoffsetstotimestamps" rel="nofollow"&gt;Specify timezones of timestamps&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 30 Jun 2010 03:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16449#M1984</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-06-30T03:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time stamp Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16450#M1985</link>
      <description>&lt;P&gt;Hah you probably know whats going on but you're getting me confused here.. I meant to say that you have to keep the T in timestamp if you use the TIME_FORMAT I provided in the above comment. Is this what you're trying to say.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2010 03:19:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16450#M1985</guid>
      <dc:creator>hiwell</dc:creator>
      <dc:date>2010-06-30T03:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time stamp Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16451#M1986</link>
      <description>&lt;P&gt;I agree with Lowell above -- if it's exactly an hour off it's probably not a time extraction issue, but a timezone issue.&lt;BR /&gt;
Info that would be useful:&lt;BR /&gt;
  * Do a search that finds that single event and then add "| eval t=_time | table t" to the search.  You should see the raw UNIX epoch time (i.e. seconds since Midnight 1/1/1970, GMT).  What number do we report that  for that event.  It'll be a number around 1.2 billion.&lt;BR /&gt;
  * What OS are you running?&lt;BR /&gt;
  * What version of Splunk?&lt;BR /&gt;
  * What timezone are you in?  How specifically is it configured in the OS?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2010 11:26:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16451#M1986</guid>
      <dc:creator>mitch</dc:creator>
      <dc:date>2010-07-28T11:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Time stamp Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16452#M1987</link>
      <description>&lt;P&gt;hello, can we push this from Deployment Monitor ??&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 08:54:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Time-stamp-Error/m-p/16452#M1987</guid>
      <dc:creator>blebit</dc:creator>
      <dc:date>2014-01-24T08:54:41Z</dc:date>
    </item>
  </channel>
</rss>

