<?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 Input Monitor order of precedence in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Input-Monitor-order-of-precedence/m-p/531515#M89406</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Will Splunk use a more explicit Monitor stanza vs a wildcard stanza.&amp;nbsp; Since the stanza's are not identical I do not believe Splunk merges and applies lexicographical order so which stanze wins for the monitored file?&amp;nbsp; My assumption is the more explicit stanza but I can't fing documentation to back that up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;[monitor:///var/log/]&lt;BR /&gt;index = linux&lt;BR /&gt;vs.&lt;BR /&gt;[monitor:///var/log/secure.log]&lt;BR /&gt;index = main&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 13:26:11 GMT</pubDate>
    <dc:creator>sean193</dc:creator>
    <dc:date>2020-12-01T13:26:11Z</dc:date>
    <item>
      <title>Input Monitor order of precedence</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-Monitor-order-of-precedence/m-p/531515#M89406</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Will Splunk use a more explicit Monitor stanza vs a wildcard stanza.&amp;nbsp; Since the stanza's are not identical I do not believe Splunk merges and applies lexicographical order so which stanze wins for the monitored file?&amp;nbsp; My assumption is the more explicit stanza but I can't fing documentation to back that up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;[monitor:///var/log/]&lt;BR /&gt;index = linux&lt;BR /&gt;vs.&lt;BR /&gt;[monitor:///var/log/secure.log]&lt;BR /&gt;index = main&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 13:26:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-Monitor-order-of-precedence/m-p/531515#M89406</guid>
      <dc:creator>sean193</dc:creator>
      <dc:date>2020-12-01T13:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Input Monitor order of precedence</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-Monitor-order-of-precedence/m-p/531532#M89409</link>
      <description>&lt;P&gt;Try it, find out, and report back.&amp;nbsp; If the data from secure.log appears in index=main then you know the specific stanza trumps the general one.&amp;nbsp; I suspect that is not the case, however.&lt;/P&gt;&lt;P&gt;Also, &lt;FONT face="courier new,courier"&gt;splunk list monitor&lt;/FONT&gt; on the monitoring instance may shed some light on what is being monitored.&lt;/P&gt;&lt;P&gt;If the specific stanza ends up duplicating the general one then you should be able to work around it with a blacklist.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/log/]
index = linux
blacklist = secure\.log

[monitor:///var/log/secure.log]
index = main&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Dec 2020 14:28:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-Monitor-order-of-precedence/m-p/531532#M89409</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-12-01T14:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Input Monitor order of precedence</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-Monitor-order-of-precedence/m-p/531543#M89413</link>
      <description>&lt;P&gt;Well after testing the explicit stanza wins, atleast in the case below.&amp;nbsp; Secure when to main, not linux.&amp;nbsp; This makes since to me just wish it was documented as I could see other people having questions like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;[monitor:///var/log]&lt;BR /&gt;index = linux&lt;BR /&gt;disabled = 0&lt;/P&gt;&lt;P&gt;[monitor:///var/log/secure]&lt;BR /&gt;disabled = false&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 15:17:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-Monitor-order-of-precedence/m-p/531543#M89413</guid>
      <dc:creator>sean193</dc:creator>
      <dc:date>2020-12-01T15:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Input Monitor order of precedence</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-Monitor-order-of-precedence/m-p/531572#M89417</link>
      <description>&lt;P&gt;Thanks for reporting back.&amp;nbsp; Be sure to accept your answer to help future readers find the solution.&lt;/P&gt;&lt;P&gt;Consider submitting feedback on the documentation page.&amp;nbsp; The Docs team is very good about clarifying the pages in response to user feedback.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 17:49:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-Monitor-order-of-precedence/m-p/531572#M89417</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-12-01T17:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Input Monitor order of precedence</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-Monitor-order-of-precedence/m-p/531574#M89418</link>
      <description>&lt;P&gt;Feedback as submitted to the doc team.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 17:56:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-Monitor-order-of-precedence/m-p/531574#M89418</guid>
      <dc:creator>sean193</dc:creator>
      <dc:date>2020-12-01T17:56:10Z</dc:date>
    </item>
  </channel>
</rss>

