<?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: Consolidating two [monitor://] stanzas in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Consolidating-two-monitor-stanzas/m-p/505235#M86093</link>
    <description>I don't see an easy way. Even if you were to come up with one, could you or your successor maintain it? What if another filepath had to be added? Keeping it simple does just mean fewer characters in the .conf file.</description>
    <pubDate>Fri, 19 Jun 2020 18:05:50 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-06-19T18:05:50Z</dc:date>
    <item>
      <title>Consolidating two [monitor://] stanzas</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Consolidating-two-monitor-stanzas/m-p/505220#M86088</link>
      <description>&lt;P&gt;I'm dealing with a set of web servers with an inconsistent access logging configuration. There is some variability in the path and the name of the files:&lt;BR /&gt;&lt;U&gt;Source&lt;/U&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/usr/local2/searchapps/v-ESP_ssl/logs/access.log
/usr/local2/searchapps/v-admin11/conf/ssl/logs/access_log
/usr/local2/searchapps/v-admin11/logs/access.log&lt;/LI-CODE&gt;&lt;P&gt;There are additional file patterns in these same directory paths that I don't want to index:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;PATH&amp;gt;/access.log-2020-06-13-1592036161
&amp;lt;PATH&amp;gt;/access.log-2020-06-13-1592036161.gz&lt;/LI-CODE&gt;&lt;P&gt;It seems I can pull everything in correctly with two [monitor] stanzas:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///usr/local2/searchapps/v-*/.../logs/access*]
index           = web
sourcetype      = access_combined
crcSalt         = &amp;lt;SOURCE&amp;gt;
whitelist       = access[\._]log$

[monitor:///usr/local2/searchapps/v-*/logs/access*]
index           = web
sourcetype      = access_combined
crcSalt         = &amp;lt;SOURCE&amp;gt;
whitelist       = access[\._]log$&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;For my own education, I'm trying to simplify the configuration by collapsing them into a single stanza and getting rid of the whitelist. So far I've been unsuccessful, it seems mostly due to the behavior of the ... and * wildcards.&lt;/P&gt;&lt;P&gt;Is there a way to combine those two inputs into one and further simplify?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 16:28:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Consolidating-two-monitor-stanzas/m-p/505220#M86088</guid>
      <dc:creator>_smp_</dc:creator>
      <dc:date>2020-06-19T16:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Consolidating two [monitor://] stanzas</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Consolidating-two-monitor-stanzas/m-p/505235#M86093</link>
      <description>I don't see an easy way. Even if you were to come up with one, could you or your successor maintain it? What if another filepath had to be added? Keeping it simple does just mean fewer characters in the .conf file.</description>
      <pubDate>Fri, 19 Jun 2020 18:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Consolidating-two-monitor-stanzas/m-p/505235#M86093</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-19T18:05:50Z</dc:date>
    </item>
  </channel>
</rss>

