<?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 How do I make sure that my events will always be indexed with the right timezone when using an INGEST_EVAL? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-sure-that-my-events-will-always-be-indexed-with/m-p/526615#M88820</link>
    <description>&lt;P&gt;Hello,&amp;nbsp; I am looking for some clarifications when using an INGEST_EVAL to set a timezone during index time.&lt;/P&gt;&lt;P&gt;The timezone I am working with is Romania which is +0200 or EET standard time and +0300 or EEST daylight savings time.&amp;nbsp; No Romanian cities are available in the Splunk timezone list so I am using Beirut which according to &lt;A href="https://www.worlddata.info/timezones/eet-eastern-european-time.php" target="_self"&gt;this page&lt;/A&gt; is on the same timezone year round as Romania.&lt;/P&gt;&lt;P&gt;Now for my data I am indexing using an INGEST_EVAL which takes the timestamp from the source where each filename has the following format and reflects local Romanian time:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;this_is_my_file_&lt;STRONG&gt;2020_10_27_10_55_53&lt;/STRONG&gt;.csv&lt;/P&gt;&lt;P&gt;Since there is no timezone specified in the filename and since the Splunk system time is set to UTC I need to append the timezone using the INGEST_EVAL:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;INGEST_EVAL&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;_time&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;strptime(replace(source,&lt;/SPAN&gt;&lt;SPAN&gt;".*(?=/)/"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;"EET"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"this_is_my_file_%Y_%m_%d_%H_%M_%S.csv%Z"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now for my concern.&amp;nbsp; Since I have hardcoded "EET" in the INGEST_EVAL, will this skew the files that are ingested during the daylight savings period?&amp;nbsp; In other words, if a filename comes in during EEST, so 2020-10-01 for example, will Splunk understand not to use "EET" and use "EEST" instead even though it is not specified in the INGEST_EVAL?&lt;BR /&gt;&lt;BR /&gt;To conclude, I hate timezones &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any input would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you and best regards,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2020 10:17:53 GMT</pubDate>
    <dc:creator>andrewtrobec</dc:creator>
    <dc:date>2020-10-27T10:17:53Z</dc:date>
    <item>
      <title>How do I make sure that my events will always be indexed with the right timezone when using an INGEST_EVAL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-sure-that-my-events-will-always-be-indexed-with/m-p/526615#M88820</link>
      <description>&lt;P&gt;Hello,&amp;nbsp; I am looking for some clarifications when using an INGEST_EVAL to set a timezone during index time.&lt;/P&gt;&lt;P&gt;The timezone I am working with is Romania which is +0200 or EET standard time and +0300 or EEST daylight savings time.&amp;nbsp; No Romanian cities are available in the Splunk timezone list so I am using Beirut which according to &lt;A href="https://www.worlddata.info/timezones/eet-eastern-european-time.php" target="_self"&gt;this page&lt;/A&gt; is on the same timezone year round as Romania.&lt;/P&gt;&lt;P&gt;Now for my data I am indexing using an INGEST_EVAL which takes the timestamp from the source where each filename has the following format and reflects local Romanian time:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;this_is_my_file_&lt;STRONG&gt;2020_10_27_10_55_53&lt;/STRONG&gt;.csv&lt;/P&gt;&lt;P&gt;Since there is no timezone specified in the filename and since the Splunk system time is set to UTC I need to append the timezone using the INGEST_EVAL:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;INGEST_EVAL&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;_time&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;strptime(replace(source,&lt;/SPAN&gt;&lt;SPAN&gt;".*(?=/)/"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;"EET"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"this_is_my_file_%Y_%m_%d_%H_%M_%S.csv%Z"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now for my concern.&amp;nbsp; Since I have hardcoded "EET" in the INGEST_EVAL, will this skew the files that are ingested during the daylight savings period?&amp;nbsp; In other words, if a filename comes in during EEST, so 2020-10-01 for example, will Splunk understand not to use "EET" and use "EEST" instead even though it is not specified in the INGEST_EVAL?&lt;BR /&gt;&lt;BR /&gt;To conclude, I hate timezones &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any input would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you and best regards,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 10:17:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-make-sure-that-my-events-will-always-be-indexed-with/m-p/526615#M88820</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2020-10-27T10:17:53Z</dc:date>
    </item>
  </channel>
</rss>

