<?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: Monitor twice the same directory in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546669#M91040</link>
    <description>&lt;P&gt;ok, i solved it with wildcards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/syslog/logavaya/*/*-*.kuechen.de.log]&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 05 Apr 2021 08:52:14 GMT</pubDate>
    <dc:creator>StefanW</dc:creator>
    <dc:date>2021-04-05T08:52:14Z</dc:date>
    <item>
      <title>Monitor twice the same directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546610#M91031</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have syslog-ng running and got all my syslog messages from my access points and cisco switches to the same directory. But the access points should go to another index as the switch logs.&lt;/P&gt;&lt;P&gt;so i created to monitor stanzas, but the second stanza doesnt work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#log cisco switches
[monitor:///var/syslog/logavaya/*/*.log]
host_segment = 4
disabled = false
index = cisco
sourcetype = syslog
blacklist = \d-\d\d\.kuechen\.de\.log$

#log avaya access points
[monitor:///var/syslog/logavaya/*/./*.log]
host_segment = 4
disabled = false
index = avaya
sourcetype = avaya:ap
whitelist = \d-\d\d\.kuechen\.de\.log$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is, how can i input all files into two index with different sourcetypes?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 11:08:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546610#M91031</guid>
      <dc:creator>StefanW</dc:creator>
      <dc:date>2021-04-04T11:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor twice the same directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546612#M91032</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222784"&gt;@StefanW&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You should use different stanzas, please try below. If you can define regex for cisco switches, it is better.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#log cisco switches
[monitor:///var/syslog/logavaya/*/*.log]
host_segment = 4
disabled = false
index = cisco
sourcetype = syslog
blacklist = \d-\d\d\.kuechen\.de\.log$

#log avaya access points
[monitor:///var/syslog/logavaya/*/./\d-\d\d\.kuechen\.de\.log$]
host_segment = 4
disabled = false
index = avaya
sourcetype = avaya:ap&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 11:54:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546612#M91032</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-04-04T11:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor twice the same directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546616#M91034</link>
      <description>&lt;P&gt;I tried this first, but as I know, regex is not possible in the path part of the monitor.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 14:06:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546616#M91034</guid>
      <dc:creator>StefanW</dc:creator>
      <dc:date>2021-04-04T14:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor twice the same directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546622#M91035</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222784"&gt;@StefanW&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Regex does work on monitor starting from the next segment after * or ... .&lt;/P&gt;&lt;P&gt;The reason of the problem is, the first stanza already covers *.log files, if you can write a regex to cisco stanza it will work. If you can tell us about the files names for cisco and avaya we can offer regex.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 14:41:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546622#M91035</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-04-04T14:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor twice the same directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546623#M91036</link>
      <description>&lt;P&gt;The Avaya access point logs are really simple. Like 1-01.kuechen.de&lt;/P&gt;&lt;P&gt;the switches have hostnames which are complex and have no really a pattern, because of that I blacklisted the avaya log files.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 14:49:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546623#M91036</guid>
      <dc:creator>StefanW</dc:creator>
      <dc:date>2021-04-04T14:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor twice the same directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546629#M91038</link>
      <description>&lt;P&gt;Maybe the best idea is filtering with syslog-ng based on message content and write to a different folder.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;log {
    source(s1);
    filter { match("cisco" value("MESSAGE")) };
    destination(d_cisco);
};&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 04 Apr 2021 16:29:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546629#M91038</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-04-04T16:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor twice the same directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546669#M91040</link>
      <description>&lt;P&gt;ok, i solved it with wildcards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/syslog/logavaya/*/*-*.kuechen.de.log]&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 05 Apr 2021 08:52:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-twice-the-same-directory/m-p/546669#M91040</guid>
      <dc:creator>StefanW</dc:creator>
      <dc:date>2021-04-05T08:52:14Z</dc:date>
    </item>
  </channel>
</rss>

