<?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 recognition in multi timestamp event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-recognition-in-multi-timestamp-event/m-p/191542#M38121</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;

&lt;P&gt;I have a problem with my log. Some events have only one timestamp, some have two - as in this example : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Data/Configurepositionaltimestampextraction#Example" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Data/Configurepositionaltimestampextraction#Example&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;How should I configure splunk to always match the latest timestamp in the event?&lt;/STRONG&gt;&lt;BR /&gt;
I could write regex, but I only can provide time PREFIX (TIME_PREFIX=...). If I write a TIME_PREFIX for two-timestamps-event - some events (with only one timestamp) will have incorrect time (time of indexing)&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:40:45 GMT</pubDate>
    <dc:creator>lukasz92</dc:creator>
    <dc:date>2020-09-28T18:40:45Z</dc:date>
    <item>
      <title>timestamp recognition in multi timestamp event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-recognition-in-multi-timestamp-event/m-p/191542#M38121</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;

&lt;P&gt;I have a problem with my log. Some events have only one timestamp, some have two - as in this example : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Data/Configurepositionaltimestampextraction#Example" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Data/Configurepositionaltimestampextraction#Example&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;How should I configure splunk to always match the latest timestamp in the event?&lt;/STRONG&gt;&lt;BR /&gt;
I could write regex, but I only can provide time PREFIX (TIME_PREFIX=...). If I write a TIME_PREFIX for two-timestamps-event - some events (with only one timestamp) will have incorrect time (time of indexing)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:40:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-recognition-in-multi-timestamp-event/m-p/191542#M38121</guid>
      <dc:creator>lukasz92</dc:creator>
      <dc:date>2020-09-28T18:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp recognition in multi timestamp event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-recognition-in-multi-timestamp-event/m-p/191543#M38122</link>
      <description>&lt;P&gt;I would try it with a regexp with a two alternatives, one with a positive look ahead (?=…second time stamp regexp…)so it only matches if there is a second timestamp, did not try it out, but I think this could work.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2015 14:15:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-recognition-in-multi-timestamp-event/m-p/191543#M38122</guid>
      <dc:creator>FritzWittwer_ol</dc:creator>
      <dc:date>2015-01-12T14:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp recognition in multi timestamp event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-recognition-in-multi-timestamp-event/m-p/191544#M38123</link>
      <description>&lt;P&gt;Can you provide some samples of your events (mask sensitive information) with both single and double timestamp values.?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2015 15:39:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-recognition-in-multi-timestamp-event/m-p/191544#M38123</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-01-12T15:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp recognition in multi timestamp event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-recognition-in-multi-timestamp-event/m-p/191545#M38124</link>
      <description>&lt;P&gt;I solved my problem with using one, more complicated regex - with question mark match:  &lt;CODE&gt;()?&lt;/CODE&gt;&lt;BR /&gt;
TIME_PREFIX = &lt;CODE&gt;(.*something123 (\[)?([^,]*, somethingother[^,]*,[^,]*, [^0-9]*)?)?&lt;/CODE&gt;&lt;BR /&gt;
It was possible with my custom data.&lt;/P&gt;

&lt;P&gt;@FritzWittwer&lt;BR /&gt;
I haven't tried your solution, maybe it works.&lt;/P&gt;

&lt;P&gt;I will keep the question open, for other ideas.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2015 14:55:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-recognition-in-multi-timestamp-event/m-p/191545#M38124</guid>
      <dc:creator>lukasz92</dc:creator>
      <dc:date>2015-02-06T14:55:54Z</dc:date>
    </item>
  </channel>
</rss>

