<?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: Multiple stanza in inputs.conf for the same folder in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-stanza-in-inputs-conf-for-the-same-folder/m-p/353751#M19343</link>
    <description>&lt;P&gt;I wish monitor stanzas were named instead of specifying paths. The current approach makes for a lot of extras steps. &lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2017 07:08:53 GMT</pubDate>
    <dc:creator>mikaelbje</dc:creator>
    <dc:date>2017-09-28T07:08:53Z</dc:date>
    <item>
      <title>Multiple stanza in inputs.conf for the same folder</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-stanza-in-inputs-conf-for-the-same-folder/m-p/353748#M19340</link>
      <description>&lt;P&gt;I want to monitor a folder /data/data1 with file inside&lt;BR /&gt;
-file1, file2,&amp;nbsp;other_log,&amp;nbsp;mail_log&lt;/P&gt;

&lt;P&gt;Here is the config&lt;BR /&gt;
[monitor:///data/data1] &lt;BR /&gt;
whitelist = file1|file2 &amp;lt;- same result if specifying file*$ &lt;BR /&gt;
disabled = false &lt;BR /&gt;
index=test1 &lt;BR /&gt;
[monitor:///data/data1] &lt;BR /&gt;
whitelist=other_log|log_mail &lt;BR /&gt;
disabled = false &lt;BR /&gt;
index = test2&lt;/P&gt;

&lt;P&gt;Seems only the last stanza works. There is no data going into Splunk for file* in the first stanza&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:52:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Multiple-stanza-in-inputs-conf-for-the-same-folder/m-p/353748#M19340</guid>
      <dc:creator>tlam_splunk</dc:creator>
      <dc:date>2020-09-29T13:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple stanza in inputs.conf for the same folder</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-stanza-in-inputs-conf-for-the-same-folder/m-p/353749#M19341</link>
      <description>&lt;P&gt;Got the answer.&lt;/P&gt;

&lt;P&gt;The monitor should not have the same name:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Monitorfilesanddirectories"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Data/Monitorfilesanddirectories&lt;/A&gt;&lt;BR /&gt;
"Monitor inputs may overlap. So long as the stanza names are different, Splunk Enterprise treats them as independent stanzas and files matching the most specific stanza will be treated in accordance with its settings." &lt;/P&gt;

&lt;P&gt;Have to better organise the logs by folders. &lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 09:48:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Multiple-stanza-in-inputs-conf-for-the-same-folder/m-p/353749#M19341</guid>
      <dc:creator>tlam_splunk</dc:creator>
      <dc:date>2017-04-28T09:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple stanza in inputs.conf for the same folder</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-stanza-in-inputs-conf-for-the-same-folder/m-p/353750#M19342</link>
      <description>&lt;P&gt;One trick is to use dots in path: &lt;CODE&gt;/data/data1&lt;/CODE&gt; in one monitor and then &lt;CODE&gt;/data/./data1&lt;/CODE&gt; in the another one.&lt;/P&gt;

&lt;P&gt;The dot stays in the same directory, but Splunk considers these names as different.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 09:38:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Multiple-stanza-in-inputs-conf-for-the-same-folder/m-p/353750#M19342</guid>
      <dc:creator>voldemarlegrand</dc:creator>
      <dc:date>2017-08-04T09:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple stanza in inputs.conf for the same folder</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-stanza-in-inputs-conf-for-the-same-folder/m-p/353751#M19343</link>
      <description>&lt;P&gt;I wish monitor stanzas were named instead of specifying paths. The current approach makes for a lot of extras steps. &lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 07:08:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Multiple-stanza-in-inputs-conf-for-the-same-folder/m-p/353751#M19343</guid>
      <dc:creator>mikaelbje</dc:creator>
      <dc:date>2017-09-28T07:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple stanza in inputs.conf for the same folder</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Multiple-stanza-in-inputs-conf-for-the-same-folder/m-p/506350#M19344</link>
      <description>&lt;P&gt;Hello voldemarlegrand,&lt;/P&gt;&lt;P&gt;I have the same issue and liked your trick. But somehow it works in splunk btool inputs list stanza, but not in reality. Splunk stopped logging the data specified with /data/./data1. When I used a less well defined method like /data/data1 and /data/data if I have only a /data/data1 directory then it works. I guess the better solution is to assign indexes by transforms.conf as described at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.4/Indexer/Setupmultipleindexes" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.4/Indexer/Setupmultipleindexes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 18:42:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Multiple-stanza-in-inputs-conf-for-the-same-folder/m-p/506350#M19344</guid>
      <dc:creator>graether</dc:creator>
      <dc:date>2020-06-26T18:42:18Z</dc:date>
    </item>
  </channel>
</rss>

