<?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: What is the order of precedence when there are conflicting configs (such as timezone) at the sourcetype, host and source level? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-order-of-precedence-when-there-are-conflicting/m-p/168661#M34136</link>
    <description>&lt;P&gt;Hi anandhim,&lt;/P&gt;

&lt;P&gt;you can find all the details on config file precedences here in the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Admin/Wheretofindtheconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Admin/Wheretofindtheconfigurationfiles&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2015 18:35:01 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2015-03-04T18:35:01Z</dc:date>
    <item>
      <title>What is the order of precedence when there are conflicting configs (such as timezone) at the sourcetype, host and source level?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-order-of-precedence-when-there-are-conflicting/m-p/168660#M34135</link>
      <description>&lt;P&gt;What is the order of precedence when there is conflicting configurations (such as timezone) at sourcetype, host and source level?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 18:27:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-order-of-precedence-when-there-are-conflicting/m-p/168660#M34135</guid>
      <dc:creator>anandhim</dc:creator>
      <dc:date>2015-03-04T18:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: What is the order of precedence when there are conflicting configs (such as timezone) at the sourcetype, host and source level?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-order-of-precedence-when-there-are-conflicting/m-p/168661#M34136</link>
      <description>&lt;P&gt;Hi anandhim,&lt;/P&gt;

&lt;P&gt;you can find all the details on config file precedences here in the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Admin/Wheretofindtheconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Admin/Wheretofindtheconfigurationfiles&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 18:35:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-order-of-precedence-when-there-are-conflicting/m-p/168661#M34136</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-03-04T18:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is the order of precedence when there are conflicting configs (such as timezone) at the sourcetype, host and source level?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-order-of-precedence-when-there-are-conflicting/m-p/168662#M34137</link>
      <description>&lt;P&gt;Thanks .The information I needed was not on that page directly but a link to the page which contains the answer was present: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/admin/Attributeprecedencewithinafile"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/admin/Attributeprecedencewithinafile&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 18:41:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-order-of-precedence-when-there-are-conflicting/m-p/168662#M34137</guid>
      <dc:creator>anandhim</dc:creator>
      <dc:date>2015-03-04T18:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: What is the order of precedence when there are conflicting configs (such as timezone) at the sourcetype, host and source level?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-order-of-precedence-when-there-are-conflicting/m-p/168663#M34138</link>
      <description>&lt;P&gt;The order of precedence when processing stanzas in props.conf is:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;source&lt;/LI&gt;
&lt;LI&gt;host&lt;/LI&gt;
&lt;LI&gt;sourcetype&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;As noted here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Admin/Propsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**[&amp;lt;spec&amp;gt;] stanza precedence:**

For settings that are specified in multiple categories of matching [&amp;lt;spec&amp;gt;] stanzas,
[host::&amp;lt;host&amp;gt;] settings override [&amp;lt;sourcetype&amp;gt;] settings. Additionally,
[source::&amp;lt;source&amp;gt;] settings override both [host::&amp;lt;host&amp;gt;] and
[&amp;lt;sourcetype&amp;gt;] settings.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Consider the following example:&lt;BR /&gt;
The Universal Forwarder is installed on &lt;STRONG&gt;my_server01&lt;/STRONG&gt; and reading &lt;STRONG&gt;opt/myapp/system.log&lt;/STRONG&gt; (source) and tagging it with a sourcetype of &lt;STRONG&gt;system_traffic&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;We have 3 different &lt;EM&gt;props.conf&lt;/EM&gt; files across 3 apps in our &lt;EM&gt;$splunk_home/etc/apps&lt;/EM&gt; folder&lt;/P&gt;

&lt;P&gt;$splunk_home/etc/apps/my_app1/default/props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[system_traffic]
TZ=UTC
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;$splunk_home/etc/apps/my_app2/default/props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::opt/myapp/system.log]
TZ=America/Los_Angeles
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;$splunk_home/etc/apps/my_app3/default/props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::my_server01]
TZ=America/New_York
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Our resulting TZ for &lt;STRONG&gt;opt/myapp/system.log&lt;/STRONG&gt; on &lt;STRONG&gt;my_server01&lt;/STRONG&gt; would be:  &lt;STRONG&gt;TZ=America/Los_Angeles&lt;/STRONG&gt; because the source stanza overrides both the host and the sourcetype stanzas.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:05:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-order-of-precedence-when-there-are-conflicting/m-p/168663#M34138</guid>
      <dc:creator>jchampagne_splu</dc:creator>
      <dc:date>2020-09-28T19:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: What is the order of precedence when there are conflicting configs (such as timezone) at the sourcetype, host and source level?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-order-of-precedence-when-there-are-conflicting/m-p/168664#M34139</link>
      <description>&lt;P&gt;nice answer!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 19:11:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-order-of-precedence-when-there-are-conflicting/m-p/168664#M34139</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-03-04T19:11:40Z</dc:date>
    </item>
  </channel>
</rss>

