<?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 can I set a timezone for a specific sourcetytpe? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-set-a-timezone-for-a-specific-sourcetytpe/m-p/316082#M94608</link>
    <description>&lt;P&gt;How to specify a particular timezone for specific sourcetype? I found the below format the other Splunk question. Can I place it in the inputs.conf? Can two same source types have different timezone?&lt;/P&gt;

&lt;P&gt;[yourSourcetype]&lt;BR /&gt;
 TZ = TZvalueForYourEventTimestamps&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2017 19:48:52 GMT</pubDate>
    <dc:creator>kteng2024</dc:creator>
    <dc:date>2017-09-01T19:48:52Z</dc:date>
    <item>
      <title>How can I set a timezone for a specific sourcetytpe?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-set-a-timezone-for-a-specific-sourcetytpe/m-p/316082#M94608</link>
      <description>&lt;P&gt;How to specify a particular timezone for specific sourcetype? I found the below format the other Splunk question. Can I place it in the inputs.conf? Can two same source types have different timezone?&lt;/P&gt;

&lt;P&gt;[yourSourcetype]&lt;BR /&gt;
 TZ = TZvalueForYourEventTimestamps&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 19:48:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-set-a-timezone-for-a-specific-sourcetytpe/m-p/316082#M94608</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2017-09-01T19:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set a timezone for a specific sourcetytpe?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-set-a-timezone-for-a-specific-sourcetytpe/m-p/316083#M94609</link>
      <description>&lt;P&gt;The &lt;CODE&gt;TZ&lt;/CODE&gt; attribute goes in the props.conf file in the appropriate sourcetype stanza.  A given sourcetype can have only one time zone specifier, but the data itself can specify a time zone as part of the timestamp for each event.  IOW, if you set &lt;CODE&gt;TZ = EST&lt;/CODE&gt; events can still have '2017-09-01 16:30:00Z' to indicate a UTC timestamp.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 20:31:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-set-a-timezone-for-a-specific-sourcetytpe/m-p/316083#M94609</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-09-01T20:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set a timezone for a specific sourcetytpe?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-set-a-timezone-for-a-specific-sourcetytpe/m-p/316084#M94610</link>
      <description>&lt;P&gt;If you want to use the same sourcetype, and the time zone is not explicit, how should the computer be able to tell the difference, from the content of the records?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 20:32:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-set-a-timezone-for-a-specific-sourcetytpe/m-p/316084#M94610</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-01T20:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set a timezone for a specific sourcetytpe?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-set-a-timezone-for-a-specific-sourcetytpe/m-p/316085#M94611</link>
      <description>&lt;P&gt;You can have as many &lt;CODE&gt;TZ=&lt;/CODE&gt; definitions as you like but ONLY in &lt;CODE&gt;props.conf&lt;/CODE&gt; (not &lt;CODE&gt;inputs.conf&lt;/CODE&gt;).  You can even override the default ASCII-ordering precedence (within a particular &lt;CODE&gt;spec&lt;/CODE&gt;) using the &lt;CODE&gt;priority&lt;/CODE&gt; argument.   Beware of &lt;CODE&gt;spec&lt;/CODE&gt; precedence:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**[] stanza precedence:**
For settings that are specified in multiple categories of matching [] stanzas, [host::] settings override [] settings.
Additionally, [source::] settings override both [host::] and [] settings.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So if your &lt;CODE&gt;sourcetype&lt;/CODE&gt; setting is not working, a &lt;CODE&gt;host&lt;/CODE&gt; or &lt;CODE&gt;source&lt;/CODE&gt; setting may be overriding it.&lt;/P&gt;

&lt;P&gt;Typically we use &lt;CODE&gt;host&lt;/CODE&gt; spec for &lt;CODE&gt;TZ=&lt;/CODE&gt; settings, frequently with wildcards and heavy use of &lt;CODE&gt;priority&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2017 15:50:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-set-a-timezone-for-a-specific-sourcetytpe/m-p/316085#M94611</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-02T15:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set a timezone for a specific sourcetytpe?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-set-a-timezone-for-a-specific-sourcetytpe/m-p/316086#M94612</link>
      <description>&lt;P&gt;thank you for the reply. I am using the below config on the forwarder but i don't see time being converted to UTC when i run the search. i also restarted the splunkd.&lt;/P&gt;

&lt;P&gt;Index i on EDT&lt;BR /&gt;
forwarder is on EDT&lt;BR /&gt;
application is writing logs in UTC&lt;/P&gt;

&lt;P&gt;[sourcetype::webserver_log]&lt;BR /&gt;
TZ=UTC&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 20:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-set-a-timezone-for-a-specific-sourcetytpe/m-p/316086#M94612</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2017-09-05T20:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set a timezone for a specific sourcetytpe?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-set-a-timezone-for-a-specific-sourcetytpe/m-p/316087#M94613</link>
      <description>&lt;P&gt;What is your &lt;CODE&gt;inputs.conf&lt;/CODE&gt; configuration and do your events have a &lt;CODE&gt;date_zone&lt;/CODE&gt; field?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 02:32:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-set-a-timezone-for-a-specific-sourcetytpe/m-p/316087#M94613</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-07T02:32:34Z</dc:date>
    </item>
  </channel>
</rss>

