<?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: how to take timestamp from this in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-take-timestamp-from-this/m-p/194101#M55929</link>
    <description>&lt;P&gt;This is my log file &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Timestamp   Event
5/22/14 10:32:15.000 AM [2014-05-22T05:02:15.000+00:00] [oracle] [NOTIFICATION:1] [] [] [ecid: 00^sq] [tid: 1604]  [36007] Loading repository.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here it show Timestamp 5/22/14 10:32:15.000 AM But the actual timestamp is 2014-05-22T05:02:15.000+00:00 which should be 5/22/14 05:02:15.000 AM exactly 5.30 hours it is increasing for all the event what may be the reason behind this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Gajanan Hiroji&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jun 2014 12:11:53 GMT</pubDate>
    <dc:creator>gajananh999</dc:creator>
    <dc:date>2014-06-10T12:11:53Z</dc:date>
    <item>
      <title>how to take timestamp from this</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-take-timestamp-from-this/m-p/194098#M55926</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;

&lt;P&gt;I need your help to how to remove timestamp from this field.&lt;/P&gt;

&lt;P&gt;2014-05-19T03:25:26.000-04:00&lt;/P&gt;

&lt;P&gt;There is TO word in this so i want to remove that and remove the last -04:00 also.&lt;/P&gt;

&lt;P&gt;Can anybody help me on this on regular expression?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Gajanan Hiroji&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2014 08:50:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-take-timestamp-from-this/m-p/194098#M55926</guid>
      <dc:creator>gajananh999</dc:creator>
      <dc:date>2014-06-10T08:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to take timestamp from this</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-take-timestamp-from-this/m-p/194099#M55927</link>
      <description>&lt;P&gt;Depends on what you're looking for but here's some examples:&lt;/P&gt;

&lt;P&gt;Regex capture group for date and time&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2}\.\d{3})-\d{2}:\d{2}&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Splunk rex command for extracting date and time&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex field=_raw ^(?&amp;lt;Date&amp;gt;\d{4}-\d{2}-\d{2})T(?&amp;lt;Time&amp;gt;\d{2}:\d{2}:\d{2}\.\d{3})-\d{2}:\d{2}&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;In props.conf, you'll want something like &lt;CODE&gt;TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3N&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Also, there isn't a word "TO" in there, it's just the letter T and the zero. It's not the letter O.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2014 11:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-take-timestamp-from-this/m-p/194099#M55927</guid>
      <dc:creator>lcrielaa</dc:creator>
      <dc:date>2014-06-10T11:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to take timestamp from this</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-take-timestamp-from-this/m-p/194100#M55928</link>
      <description>&lt;P&gt;But when i try to do field extract with the same Regex it shows Regex does not extract any named fields.  I tried removing last part of regex that is -\d{2}:\d{2} because it was not required for me. Am I going wrong somewhere?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2014 11:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-take-timestamp-from-this/m-p/194100#M55928</guid>
      <dc:creator>gajananh999</dc:creator>
      <dc:date>2014-06-10T11:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to take timestamp from this</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-take-timestamp-from-this/m-p/194101#M55929</link>
      <description>&lt;P&gt;This is my log file &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Timestamp   Event
5/22/14 10:32:15.000 AM [2014-05-22T05:02:15.000+00:00] [oracle] [NOTIFICATION:1] [] [] [ecid: 00^sq] [tid: 1604]  [36007] Loading repository.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here it show Timestamp 5/22/14 10:32:15.000 AM But the actual timestamp is 2014-05-22T05:02:15.000+00:00 which should be 5/22/14 05:02:15.000 AM exactly 5.30 hours it is increasing for all the event what may be the reason behind this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Gajanan Hiroji&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2014 12:11:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-take-timestamp-from-this/m-p/194101#M55929</guid>
      <dc:creator>gajananh999</dc:creator>
      <dc:date>2014-06-10T12:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to take timestamp from this</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-take-timestamp-from-this/m-p/194102#M55930</link>
      <description>&lt;P&gt;This is my log file &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Timestamp   Event
5/22/14 10:32:15.000 AM [2014-05-22T05:02:15.000+00:00] [oracle] [NOTIFICATION:1] [] [] [ecid: 00^sq] [tid: 1604]  [36007] Loading repository.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here it show Timestamp 5/22/14 10:32:15.000 AM But the actual timestamp is 2014-05-22T05:02:15.000+00:00 which should be 5/22/14 05:02:15.000 AM exactly 5.30 hours it is increasing for all the event what may be the reason behind this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Gajanan Hiroji&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2014 12:12:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-take-timestamp-from-this/m-p/194102#M55930</guid>
      <dc:creator>gajananh999</dc:creator>
      <dc:date>2014-06-10T12:12:01Z</dc:date>
    </item>
  </channel>
</rss>

