<?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: How to blacklist a log data from being monitored from router device ending with host name 03r /04r and keeping other devices still monitored? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-a-log-data-from-being-monitored-from-router/m-p/356241#M65064</link>
    <description>&lt;P&gt;Like this&lt;/P&gt;

&lt;P&gt;blacklist = ^.*03r$|^.*04r$&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:51:43 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2020-09-29T15:51:43Z</dc:date>
    <item>
      <title>How to blacklist a log data from being monitored from router device ending with host name 03r /04r and keeping other devices still monitored?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-a-log-data-from-being-monitored-from-router/m-p/356239#M65062</link>
      <description>&lt;P&gt;Hi All,  My exact requirement, currently we need to route  two router devices at the site 03r and 04r  point to  index=net sourcetype=cisco:network:router to index=net sourcetype=cisco:network:switch .&lt;/P&gt;

&lt;P&gt;We have all these devices name uxx01r, bxx02r, mxx03r , uxx04r , dxxx01psr and usxxx-inside-xsx-failover-vlan201 are pointing to the below index=net sourcetype=cisco:network:router.   But  network team wants to have the device name mxx03r and uxx04r data alone to be pointed to index=net sourcetype=cisco:network:switch. And there are totally 35 devices with name ending 03r and 04r names.&lt;/P&gt;

&lt;P&gt;Current input stanza.&lt;/P&gt;

&lt;P&gt;[monitor:///opt/syslogs/network/.../router.log*]&lt;BR /&gt;
index=net&lt;BR /&gt;
sourcetype=cisco:network:router&lt;BR /&gt;
host_segment=4&lt;/P&gt;

&lt;P&gt;[monitor:///opt/syslogs/network/.../switch.log*]&lt;BR /&gt;
index=net&lt;BR /&gt;
sourcetype=cisco:network:switch&lt;BR /&gt;
host_segment=4&lt;/P&gt;

&lt;P&gt;Kindly guide how to black list the device ending with the host name 03r and 04r index=net sourcetype=cisco:network:switch and keep others devices pointing index=net sourcetype=cisco:network:router.  &lt;/P&gt;

&lt;P&gt;Please provide me the regex that can black list these devices  ending with 03r and 04r.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2017 13:32:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-a-log-data-from-being-monitored-from-router/m-p/356239#M65062</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-09-24T13:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to blacklist a log data from being monitored from router device ending with host name 03r /04r and keeping other devices still monitored?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-a-log-data-from-being-monitored-from-router/m-p/356240#M65063</link>
      <description>&lt;P&gt;A bit similar case at &lt;A href="https://answers.splunk.com/answers/480850/how-to-blacklist-two-different-hosts-in-inputsconf.html"&gt;How to blacklist two different hosts in inputs.conf?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 00:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-a-log-data-from-being-monitored-from-router/m-p/356240#M65063</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-09-25T00:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to blacklist a log data from being monitored from router device ending with host name 03r /04r and keeping other devices still monitored?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-a-log-data-from-being-monitored-from-router/m-p/356241#M65064</link>
      <description>&lt;P&gt;Like this&lt;/P&gt;

&lt;P&gt;blacklist = ^.*03r$|^.*04r$&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:51:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-a-log-data-from-being-monitored-from-router/m-p/356241#M65064</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2020-09-29T15:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to blacklist a log data from being monitored from router device ending with host name 03r /04r and keeping other devices still monitored?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-a-log-data-from-being-monitored-from-router/m-p/356242#M65065</link>
      <description>&lt;P&gt;Hi All, I have used the below regex to black list device data being captured from 03r and 04r to index=net index=net sourcetype=cisco:network:router.&lt;/P&gt;

&lt;P&gt;[monitor:///opt/syslogs/network/.../router.log*]&lt;BR /&gt;
index=net&lt;BR /&gt;
sourcetype=cisco:network:router&lt;BR /&gt;
host_segment=4&lt;BR /&gt;
 blacklist = network\/\w*0(3|4)r&lt;/P&gt;

&lt;P&gt;Created a separate stanza for pointing the 3r and 04r device data to  index=net sourcetype=cisco:network:switch&lt;/P&gt;

&lt;P&gt;[monitor:///opt/syslogs/network/\w*0(3r|4r)&lt;EM&gt;/router.log&lt;/EM&gt;]&lt;BR /&gt;
 index=net&lt;BR /&gt;
 sourcetype=cisco:network:switch&lt;BR /&gt;
 host_segment=4&lt;/P&gt;

&lt;P&gt;It worked in our environment.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:56:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-a-log-data-from-being-monitored-from-router/m-p/356242#M65065</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T15:56:27Z</dc:date>
    </item>
  </channel>
</rss>

