<?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: Pulling timezone from a field in each event. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pull-timezone-from-a-field-in-each-event/m-p/643251#M109610</link>
    <description>&lt;P&gt;Surprisingly, it seems to work if I add a TIMESTAMP_FIELDS line to the bottom of the source type section like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[LOGDATA]
EXTRACT-LOG = ^(?&amp;lt;domain&amp;gt;[^,]+),(?&amp;lt;host&amp;gt;[^,]+),[^,]+,[^,]+,[^,]+,(?&amp;lt;timezone&amp;gt;[^,]+),(?&amp;lt;sourcename&amp;gt;[^,]+),(?&amp;lt;TEXT&amp;gt;.+)$
TIME_FORMAT = %m/%d/%Y %H:%M:%S
TIMESTAMP_FIELDS = _time, timezone&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Splunk must create the _time field and then update it with the timezone?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 20:23:12 GMT</pubDate>
    <dc:creator>rmjohns</dc:creator>
    <dc:date>2023-05-12T20:23:12Z</dc:date>
    <item>
      <title>How to pull timezone from a field in each event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pull-timezone-from-a-field-in-each-event/m-p/643247#M109608</link>
      <description>&lt;P&gt;Our server is forwarding events for us and includes some extra fields at the beginning of each event. One of those fields is the timezone offset of the server.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the event might look like:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;domain,hostname,timezone,path,log_message&lt;/P&gt;
&lt;P&gt;Where the log_message contains a&amp;nbsp; timestamp but the timestamp can be in different locations in the log_message and the timestamp can have different formats. The timestamp does not include timezone information.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Splunk does a good job of finding the timestamps and creating the _time to match, but I can't figure out how to apply the timezone field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really want to have in my props.conf to have TZ= reference the timezone field from the events:&lt;BR /&gt;TZ=timezone&lt;/P&gt;
&lt;P&gt;but that doesn't seem to work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 13:48:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pull-timezone-from-a-field-in-each-event/m-p/643247#M109608</guid>
      <dc:creator>rmjohns</dc:creator>
      <dc:date>2023-05-15T13:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling timezone from a field in each event.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pull-timezone-from-a-field-in-each-event/m-p/643251#M109610</link>
      <description>&lt;P&gt;Surprisingly, it seems to work if I add a TIMESTAMP_FIELDS line to the bottom of the source type section like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[LOGDATA]
EXTRACT-LOG = ^(?&amp;lt;domain&amp;gt;[^,]+),(?&amp;lt;host&amp;gt;[^,]+),[^,]+,[^,]+,[^,]+,(?&amp;lt;timezone&amp;gt;[^,]+),(?&amp;lt;sourcename&amp;gt;[^,]+),(?&amp;lt;TEXT&amp;gt;.+)$
TIME_FORMAT = %m/%d/%Y %H:%M:%S
TIMESTAMP_FIELDS = _time, timezone&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Splunk must create the _time field and then update it with the timezone?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 20:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pull-timezone-from-a-field-in-each-event/m-p/643251#M109610</guid>
      <dc:creator>rmjohns</dc:creator>
      <dc:date>2023-05-12T20:23:12Z</dc:date>
    </item>
  </channel>
</rss>

