<?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: Incorrect Event Date Issue in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177306#M50978</link>
    <description>&lt;P&gt;Your events are not breaking correctly and as such the timestamp is not being extracted properly either.&lt;/P&gt;

&lt;P&gt;Try something like this in your props.conf&lt;/P&gt;

&lt;P&gt;BREAK_ONLY_BEFORE=&lt;EVENT rev="1.2"&gt;&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=35&lt;BR /&gt;
NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%d-%H:%M:%S.%3N&lt;BR /&gt;
TIME_PREFIX=&lt;DATE&gt;&lt;/DATE&gt;&lt;/EVENT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:29:19 GMT</pubDate>
    <dc:creator>Lucas_K</dc:creator>
    <dc:date>2020-09-28T15:29:19Z</dc:date>
    <item>
      <title>Incorrect Event Date Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177300#M50972</link>
      <description>&lt;P&gt;We have Splunk free version protected by IBM Tivoli Access Manager. SPlunk indexes the access logs from access manager.&lt;BR /&gt;
There are no logs in the system before Sep 2013 since system is just implemented.&lt;BR /&gt;
Whenever I run a search in Splunk for events e.g. from Feb 2013 onwards the my access gets logged in access manager log with following string&lt;/P&gt;

&lt;P&gt;splunk/en-US/app/search/flashtimeline?q=search%20*&amp;amp;earliest=1360573200&amp;amp;latest=1384074000&lt;/P&gt;

&lt;P&gt;Splunk indexes this as event occurred in Feb 2013 (as per my example above) and show this under Feb 2013 events while the actual timestamp in the log is todays date . Why Splunk is treating the above as Feb 2013 event and how to fix this issue? &lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 23:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177300#M50972</guid>
      <dc:creator>usdreamz</dc:creator>
      <dc:date>2013-12-12T23:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Event Date Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177301#M50973</link>
      <description>&lt;P&gt;Which index holds this event?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2013 00:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177301#M50973</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-12-13T00:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Event Date Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177302#M50974</link>
      <description>&lt;P&gt;index="main" hold these events.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2013 02:09:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177302#M50974</guid>
      <dc:creator>usdreamz</dc:creator>
      <dc:date>2013-12-13T02:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Event Date Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177303#M50975</link>
      <description>&lt;P&gt;That is odd.  The event you posted looks like an event that is recorded in the _internal index.&lt;/P&gt;

&lt;P&gt;Does your Splunk Access Role include _internal as one of the default search indexes?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2013 02:31:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177303#M50975</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-12-13T02:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Event Date Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177304#M50976</link>
      <description>&lt;P&gt;What do your raw full events look like from access manager?&lt;/P&gt;

&lt;P&gt;If its plain text like you provided without timestamps, then reason is due to splunk guessing that the url epoch time is a timestamp (which it is not!).&lt;/P&gt;

&lt;P&gt;Do you have a props configured for this source type?&lt;/P&gt;

&lt;P&gt;I suggest you revisit how those logs are being parsed. Easiest way is to take a sample and put it through the gui data input (manager/settings -&amp;gt; data inputs -&amp;gt; add data -&amp;gt; choose your sample file). Play with your data inside that until you get the timestamp extraction right.&lt;/P&gt;

&lt;P&gt;I'm guessing if what you provided is the actual raw event you'll need to use something like DATETIME_CONFIG=current to add the time at which the event was seen.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2013 02:56:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177304#M50976</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2013-12-13T02:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Event Date Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177305#M50977</link>
      <description>&lt;P&gt;Thanks for quick response. Please see more information below. &lt;/P&gt;

&lt;P&gt;The raw log in the access manager is mentioned below. Every event / log in the access manager starts with &lt;EVENT rev="1.2"&gt; and ends with &lt;/EVENT&gt;&lt;/P&gt;

&lt;P&gt;The event log in access manager for the search performed in Splunk &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;event rev="1.2"&amp;gt;
    &amp;lt;date&amp;gt;2013-12-11-21:16:04.828-09:00I-----&amp;lt;/date&amp;gt;
    &amp;lt;outcome status="0"&amp;gt;0&amp;lt;/outcome&amp;gt;
    &amp;lt;component rev="1.2"&amp;gt;http&amp;lt;/component&amp;gt;
    &amp;lt;event_id&amp;gt;xxx&amp;lt;/event_id&amp;gt;
    &amp;lt;action&amp;gt;xxx&amp;lt;/action&amp;gt;
    &amp;lt;location&amp;gt;accessmanagerserver&amp;lt;/location&amp;gt;
    &amp;lt;/originator&amp;gt;
    &amp;lt;accessor name=""&amp;gt;
    &amp;lt;user_location&amp;gt;xxxxx&amp;lt;/user_location&amp;gt;
    &amp;lt;user_location_type&amp;gt;xxxx&amp;lt;/user_location_type&amp;gt;
    &amp;lt;/accessor&amp;gt;
    &amp;lt;target resource="5"&amp;gt;
    &amp;lt;object&amp;gt;/splunk/en-US/api/search/jobs/1386828913.220/summary?min_freq=0.5&amp;amp;#x0026;earliest_time=1233478800&amp;amp;#x0026;latest_time=1235898000&amp;amp;#x0026;output_time_format=%Y-%m-%dT%H:%M:%S.%Q%z&amp;amp;#x0026;_=1386828964438&amp;lt;/object&amp;gt;
    &amp;lt;object_nameinapp&amp;gt;/splunk/en-US/api/search/jobs/1386828913.220/summary?min_freq=0.5&amp;amp;amp;earliest_time=1233478800&amp;amp;amp;latest_time=1235898000&amp;amp;amp;output_time_format=%25Y-%25m-%25dT%25H%3A%25M%3A%25S.%25Q%25z&amp;amp;amp;_=1386828964438&amp;lt;/object_nameinapp&amp;gt;
    &amp;lt;/target&amp;gt;
    &amp;lt;resource_access&amp;gt;
    &amp;lt;action&amp;gt;httpRequest&amp;lt;/action&amp;gt;
    search/jobs/1386828913.220/summary?min_freq=0.5&amp;amp;amp;earliest_time=1233478800&amp;amp;amp;latest_time=1235898000&amp;amp;amp;output_time_format=%25Y-%25m-%25dT%25H%3A%25M%3A%25S.%25Q%25z&amp;amp;amp;_=1386828964438
    &amp;lt;method&amp;gt;xxxxx&amp;lt;/method&amp;gt;
    &amp;lt;response&amp;gt;xxxx&amp;lt;/response&amp;gt;&amp;lt;/resource_access&amp;gt;
    &amp;lt;data&amp;gt;
    GET ?min_freq=0.5&amp;amp;#x0026;earliest_time=1233478800&amp;amp;#x0026;latest_time=1235898000&amp;amp;#x0026;output_time_format=%25Y-%25m-%25dT%25H%3A%25M%3A%25S.%25Q%25z&amp;amp;#x0026;_=1386828964438 
    search/flashtimeline?auto_pause=true&amp;amp;#x0026;q=search%20host%3D%22webseal2%22
    &amp;lt;/data&amp;gt;
    &amp;lt;/event&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please see the event parsed and indexed by Splunk. I am not sure why only part of the event is parsed here. This behavior is only observed for the searches performed in Splunk and logged in access manager logs and indexed by Splunk. The access logs for other applications in access manager are indexed by splunk as well and it works well in the above format (i.e. complete event with start and end with event tag). Why Splunk is parsing / filtering only some part of the complete event?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;GET min_freq=0.5&amp;amp;#x0026;earliest_time=1233478800&amp;amp;#x0026;latest_time=1235898000&amp;amp;#x0026;output_time_format=%25Y-%25m-%25dT%25H%3A%25M%3A%25S.%25Q%25z&amp;amp;#x0026;_=1386828964438 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;search/flashtimeline?auto_pause=true&amp;amp;q=search%20host%3D%22webseal2%22&lt;BR /&gt;
    &lt;BR /&gt;
    &lt;BR /&gt;
    &lt;EVENT rev="1.2"&gt;&lt;/EVENT&gt;&lt;/P&gt;

&lt;P&gt;Prop file has following properties&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE = &amp;lt;event rev="1.2"&amp;gt;
BREAK_ONLY_BEFORE_DATE = True
MAX_EVENTS = 256
MUST_BREAK_AFTER = &amp;lt;/event&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Dec 2013 05:41:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177305#M50977</guid>
      <dc:creator>usdreamz</dc:creator>
      <dc:date>2013-12-13T05:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Event Date Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177306#M50978</link>
      <description>&lt;P&gt;Your events are not breaking correctly and as such the timestamp is not being extracted properly either.&lt;/P&gt;

&lt;P&gt;Try something like this in your props.conf&lt;/P&gt;

&lt;P&gt;BREAK_ONLY_BEFORE=&lt;EVENT rev="1.2"&gt;&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=35&lt;BR /&gt;
NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%d-%H:%M:%S.%3N&lt;BR /&gt;
TIME_PREFIX=&lt;DATE&gt;&lt;/DATE&gt;&lt;/EVENT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Incorrect-Event-Date-Issue/m-p/177306#M50978</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2020-09-28T15:29:19Z</dc:date>
    </item>
  </channel>
</rss>

