<?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: Time in Splunk in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Time-in-Splunk/m-p/657034#M13234</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Giuseppe,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;so that was a parsing error - make sence because a hand full of older entries hat another formating. The majority of the entries from that older logfile where indexed correctly!&lt;/P&gt;&lt;P&gt;Just that I understand it - Splunk parses the event and extract a time from the event. That parsed time is stored in &lt;STRONG&gt;_time&lt;/STRONG&gt;. The indextime is stored in &lt;STRONG&gt;_indextime&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In case there is not time entry in the file the indextime ist also used for &lt;STRONG&gt;_time&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Correct so far?&lt;/P&gt;&lt;P&gt;But what if I get events from machines in different timezones? Is &lt;STRONG&gt;_time&lt;/STRONG&gt; converted fo my local timezone?&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does it mean when I search for events from today 6:00am till 10:00am? Does that mean 6:00am - 10:00am in my timezone? Or in the timezones of the machines?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2023 09:14:15 GMT</pubDate>
    <dc:creator>pck1983</dc:creator>
    <dc:date>2023-09-08T09:14:15Z</dc:date>
    <item>
      <title>Time in Splunk</title>
      <link>https://community.splunk.com/t5/Installation/Time-in-Splunk/m-p/657030#M13232</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a few questions about the time in Splunk. That is a entry from an older logfile and here the _time field and the timestamp in the log does not match!&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;4/30/23&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1:32:16.000 PM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Mai&lt;/SPAN&gt; &lt;SPAN class=""&gt;08&lt;/SPAN&gt; &lt;SPAN class=""&gt;13:32:16&lt;/SPAN&gt;&amp;nbsp;xxxxxx&amp;nbsp;&lt;SPAN class=""&gt;sshd&lt;/SPAN&gt;[&lt;SPAN class=""&gt;3312558&lt;/SPAN&gt;]&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Failed&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;password&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;for&lt;/SPAN&gt;&amp;nbsp;yyyyyyyy&amp;nbsp;&lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;192.168.1.141&lt;/SPAN&gt; &lt;SPAN class=""&gt;port&lt;/SPAN&gt; &lt;SPAN class=""&gt;58744&lt;/SPAN&gt; &lt;SPAN class=""&gt;ssh2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could that happen?&lt;/P&gt;&lt;P&gt;How does time come up with the time fields? And how does it handle files which comtain no time-stamps? Is then the index-time used?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ther is a few things which I do not fully understand - maybe there is some article in the documentation which explain that in detail but I have not found with a quick search.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could pleas someone clearify how splunk handle that or link to an article? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 08:43:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Time-in-Splunk/m-p/657030#M13232</guid>
      <dc:creator>pck1983</dc:creator>
      <dc:date>2023-09-08T08:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Time in Splunk</title>
      <link>https://community.splunk.com/t5/Installation/Time-in-Splunk/m-p/657031#M13233</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260311"&gt;@pck1983&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the timestamp format is defined for each sourcetype in the props.conf (for more infos see at &lt;A href="https://docs.splunk.com/Documentation/ITSI/4.17.0/Configure/props.conf" target="_blank"&gt;https://docs.splunk.com/Documentation/ITSI/4.17.0/Configure/props.conf&lt;/A&gt;) to deploy to the Forwarders that ingested tha log and on the Search Head.&lt;/P&gt;&lt;P&gt;The timestamp format definitions are described at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/Search/Timevariables" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/Search/Timevariables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In your case, you have to set:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
TIME_PREFIX = ^
TIME_FORMAT = %b %d %H:%M:%S&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 09:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Time-in-Splunk/m-p/657031#M13233</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-08T09:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Time in Splunk</title>
      <link>https://community.splunk.com/t5/Installation/Time-in-Splunk/m-p/657034#M13234</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Giuseppe,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;so that was a parsing error - make sence because a hand full of older entries hat another formating. The majority of the entries from that older logfile where indexed correctly!&lt;/P&gt;&lt;P&gt;Just that I understand it - Splunk parses the event and extract a time from the event. That parsed time is stored in &lt;STRONG&gt;_time&lt;/STRONG&gt;. The indextime is stored in &lt;STRONG&gt;_indextime&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In case there is not time entry in the file the indextime ist also used for &lt;STRONG&gt;_time&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Correct so far?&lt;/P&gt;&lt;P&gt;But what if I get events from machines in different timezones? Is &lt;STRONG&gt;_time&lt;/STRONG&gt; converted fo my local timezone?&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does it mean when I search for events from today 6:00am till 10:00am? Does that mean 6:00am - 10:00am in my timezone? Or in the timezones of the machines?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 09:14:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Time-in-Splunk/m-p/657034#M13234</guid>
      <dc:creator>pck1983</dc:creator>
      <dc:date>2023-09-08T09:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Time in Splunk</title>
      <link>https://community.splunk.com/t5/Installation/Time-in-Splunk/m-p/657035#M13235</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260311"&gt;@pck1983&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;here you can find some useful description of how Splunk manages timezones:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/Search/Timezones" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/Search/Timezones&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/Data/Applytimezoneoffsetstotimestamps" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/Data/Applytimezoneoffsetstotimestamps&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In few words, yes, if Splunk isn't able to understand the timestamp, is uses the previous event timestamp or _indextime&amp;nbsp; as _time.&lt;/P&gt;&lt;P&gt;Splunk automatically manages different timezones so, setting the timezone in your user preferences, you can read the timestamps using the timestamp corresponding to your timezone.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 09:27:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Time-in-Splunk/m-p/657035#M13235</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-08T09:27:28Z</dc:date>
    </item>
  </channel>
</rss>

