<?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 issue in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timestamp-issue/m-p/490397#M136932</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;
I have issue with timestamp, here is the problem:&lt;BR /&gt;
every day at "1 AM" all log files copy into the logserver. this logs belong to the yesterday but splunk consider today date (import date) as timestamp!&lt;/P&gt;

&lt;P&gt;1-as you see in screenshot logfile name is 20200310.bz2 but timestamp is 3/11/20 (log belong yesterday but import today).&lt;BR /&gt;
2-as you see in screenshot every line start with time not date and I can't use timestamp of events.&lt;/P&gt;

&lt;P&gt;now question is how can I handle this with splunk?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8522i54DC2EE3CED23B84/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 04:45:19 GMT</pubDate>
    <dc:creator>indeed_2000</dc:creator>
    <dc:date>2020-03-11T04:45:19Z</dc:date>
    <item>
      <title>timestamp issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timestamp-issue/m-p/490397#M136932</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I have issue with timestamp, here is the problem:&lt;BR /&gt;
every day at "1 AM" all log files copy into the logserver. this logs belong to the yesterday but splunk consider today date (import date) as timestamp!&lt;/P&gt;

&lt;P&gt;1-as you see in screenshot logfile name is 20200310.bz2 but timestamp is 3/11/20 (log belong yesterday but import today).&lt;BR /&gt;
2-as you see in screenshot every line start with time not date and I can't use timestamp of events.&lt;/P&gt;

&lt;P&gt;now question is how can I handle this with splunk?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8522i54DC2EE3CED23B84/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 04:45:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timestamp-issue/m-p/490397#M136932</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-03-11T04:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timestamp-issue/m-p/490398#M136933</link>
      <description>&lt;P&gt;"Archive files (such as a .tar or .zip file, are decompressed before being indexed."&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Monitorfilesanddirectories#How_Splunk_Enterprise_monitors_archived_files"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Monitorfilesanddirectories#How_Splunk_Enterprise_monitors_archived_files&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;So it is reading the timestamp of the recorded event and not the timestamp of the source file. &lt;/P&gt;

&lt;P&gt;If you would like to extract the timestamp when the bz2 file is created, use this splunk answer:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/705686/how-do-you-extract-a-timestamp-from-a-filename.html"&gt;https://answers.splunk.com/answers/705686/how-do-you-extract-a-timestamp-from-a-filename.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Unless you've a specific use case where the timestamp of the source file is needed, would recommend, using the event time, because all your events will be occurring at 1am. With millions of record to search through, it will quickly turn into a pain point.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 04:59:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timestamp-issue/m-p/490398#M136933</guid>
      <dc:creator>anmolpatel</dc:creator>
      <dc:date>2020-03-11T04:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timestamp-issue/m-p/490399#M136934</link>
      <description>&lt;P&gt;1-bz2 file create next day so not resolve issue if we consider create date of file.&lt;BR /&gt;
2-this log file only store time of event not date (application create a log file each day, and file name is today date and every line of log file start with time.)&lt;/P&gt;

&lt;P&gt;e.g. &lt;BR /&gt;
file name = 20200311&lt;BR /&gt;
01:00:00 info logmessage&lt;BR /&gt;
02:00:00 info logmessage&lt;BR /&gt;
03:00:00 info logmessage&lt;BR /&gt;
...&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 05:18:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timestamp-issue/m-p/490399#M136934</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-03-11T05:18:52Z</dc:date>
    </item>
  </channel>
</rss>

