<?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 event data ?? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127915#M26276</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have eventdata as follows ,&lt;/P&gt;

&lt;P&gt;05NOV13 XYZ1 21:40:21 GMI User JESSD11 GMI sessn 1 timed-out token 2872827 revoked&lt;BR /&gt;
26JAN14 ABC1 21:36:50 GMI User JESSE05 Token #0442422 removed from CMW SOT( 139)&lt;BR /&gt;
26JAN14 ABC1 21:36:50 GMI User JESSE05 GMI sessn 1 logged off token 0442422 deleted&lt;BR /&gt;
26JAN14 XYZ1 21:40:21 TOW USER JESSD91 TERM #2872827 WAS FORCED OFF BY TIMEOUT&lt;BR /&gt;
26JAN14 XYZ1 21:40:21 GMI User JESSD91 GMI sessn 1 timed-out token 2872827 revoked&lt;BR /&gt;
26JAN14 ABC1 21:40:50 GMI User JESSD91 Token #2872827 removed from CMW SOT( 140)&lt;BR /&gt;
26JAN14 ABC1 21:40:50 GMI User JESSD91 GMI sessn 1 logged off token 2872827 deleted&lt;/P&gt;

&lt;P&gt;in which i have date mentioned in one place and timestamp mentioned in another place ,&lt;/P&gt;

&lt;P&gt;How can i use my TIME_FORMAT attribute for this case ? to pick the ryt time ??? &lt;/P&gt;

&lt;P&gt;i.e 26JAN14 ABC1 21:40:50 as 26JAN14 21:40:50 &lt;/P&gt;

&lt;P&gt;tried the following in props.conf , but didnt work any other solution for this ??&lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %d%b%y\s[A-Z0-9]{4}\s%H:%M:%S&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2014 12:12:29 GMT</pubDate>
    <dc:creator>rakesh_498115</dc:creator>
    <dc:date>2014-01-28T12:12:29Z</dc:date>
    <item>
      <title>Timestamp extraction from event data ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127915#M26276</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have eventdata as follows ,&lt;/P&gt;

&lt;P&gt;05NOV13 XYZ1 21:40:21 GMI User JESSD11 GMI sessn 1 timed-out token 2872827 revoked&lt;BR /&gt;
26JAN14 ABC1 21:36:50 GMI User JESSE05 Token #0442422 removed from CMW SOT( 139)&lt;BR /&gt;
26JAN14 ABC1 21:36:50 GMI User JESSE05 GMI sessn 1 logged off token 0442422 deleted&lt;BR /&gt;
26JAN14 XYZ1 21:40:21 TOW USER JESSD91 TERM #2872827 WAS FORCED OFF BY TIMEOUT&lt;BR /&gt;
26JAN14 XYZ1 21:40:21 GMI User JESSD91 GMI sessn 1 timed-out token 2872827 revoked&lt;BR /&gt;
26JAN14 ABC1 21:40:50 GMI User JESSD91 Token #2872827 removed from CMW SOT( 140)&lt;BR /&gt;
26JAN14 ABC1 21:40:50 GMI User JESSD91 GMI sessn 1 logged off token 2872827 deleted&lt;/P&gt;

&lt;P&gt;in which i have date mentioned in one place and timestamp mentioned in another place ,&lt;/P&gt;

&lt;P&gt;How can i use my TIME_FORMAT attribute for this case ? to pick the ryt time ??? &lt;/P&gt;

&lt;P&gt;i.e 26JAN14 ABC1 21:40:50 as 26JAN14 21:40:50 &lt;/P&gt;

&lt;P&gt;tried the following in props.conf , but didnt work any other solution for this ??&lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %d%b%y\s[A-Z0-9]{4}\s%H:%M:%S&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2014 12:12:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127915#M26276</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2014-01-28T12:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction from event data ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127916#M26277</link>
      <description>&lt;P&gt;What type of information is represented by the XYZ1 and ABC1? Time Zone? Or something else?&lt;/P&gt;

&lt;P&gt;I don't think TIME_FORMAT can handle the regex pattern in a nice way - in fact I believe that it tries to match the literal string, square brackets and all.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2014 13:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127916#M26277</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-01-28T13:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction from event data ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127917#M26278</link>
      <description>&lt;P&gt;I agree that TIME_FORMAT cannot accept a regex string.  Here's something I thought of, but haven't yet tried.  Use a transform to parse the event data then an eval to build a datetime string.&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[test]&lt;BR /&gt;
REPORT-logdata = parseLogData&lt;BR /&gt;
EVAL-datetime = date." ".time&lt;BR /&gt;
...&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[parseLogData]&lt;BR /&gt;
REGEX = "(?&amp;lt;date&amp;gt;.*?)\s(?&amp;lt;foo&amp;gt;.*?)\s(?&amp;lt;time&amp;gt;.*?)\s"&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2014 13:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127917#M26278</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-01-28T13:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction from event data ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127918#M26279</link>
      <description>&lt;P&gt;Hi Kristian..XYZ1 and ABC1 represents my system codes...&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2014 14:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127918#M26279</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2014-01-28T14:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction from event data ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127919#M26280</link>
      <description>&lt;P&gt;Sorry, that won't work. The tranformations take place after timestamp extractions.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2014 02:25:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127919#M26280</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-01-29T02:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction from event data ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127920#M26281</link>
      <description>&lt;P&gt;If the timestamp is not recognized, you need to make changes to datetime.xml&lt;/P&gt;

&lt;P&gt;you can use following in datetime.xml&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;define name="_cssdatetime" extract="day, litmonth, year, ignored_sep3, hour, minute, second"&amp;gt;
        &amp;lt;text&amp;gt;&amp;lt;![CDATA[([012]\d|3[01])(?i)(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)(?:20)?([901]\d)(?!\d| {2,})\s+(\w+)\s+([012]?\d):([0-6]?\d):([0-6]?\d)]]&amp;gt;&amp;lt;/text&amp;gt;
&amp;lt;/define&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And point your sourcetype to this new datetime xml using DATETIME_CONFIG in props.conf&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2014 10:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127920#M26281</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2014-01-30T10:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction from event data ??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127921#M26282</link>
      <description>&lt;P&gt;Excellent Pavan .. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 09:38:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-from-event-data/m-p/127921#M26282</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2014-01-31T09:38:07Z</dc:date>
    </item>
  </channel>
</rss>

