<?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 stop indexing a specific log for a particular switch in my production environment? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216117#M42527</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;props.conf: (you can replace sourcetype with syslog)&lt;/P&gt;

&lt;P&gt;[syslog]&lt;BR /&gt;
TRANSFORMS-switch = switchFilter&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;P&gt;[switchFilter]&lt;BR /&gt;
REGEX = 10.xx.xx.xx&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;Make sure you reload the splunk (https://:8000/debug/refresh) or restart the splunk service after applying the props and tranforms.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sp&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jul 2016 15:05:46 GMT</pubDate>
    <dc:creator>spsrasru</dc:creator>
    <dc:date>2016-07-15T15:05:46Z</dc:date>
    <item>
      <title>How to stop indexing a specific log for a particular switch in my production environment?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216112#M42522</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;There is request from my client to stop indexing a specific log for a particular switch in my production.&lt;BR /&gt;
For ex: I want to stop indexing a log for user login on device 10.xx.xx.xx.&lt;BR /&gt;
Just for an single device.&lt;/P&gt;

&lt;P&gt;Is there any way I can archive this?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 07:11:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216112#M42522</guid>
      <dc:creator>vineeth10</dc:creator>
      <dc:date>2016-06-22T07:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop indexing a specific log for a particular switch in my production environment?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216113#M42523</link>
      <description>&lt;P&gt;Can you clarify how the data is getting into Splunk? Is it coming directly from the switch via Syslog or from a Syslog aggregation point using the Universal Forwarder?&lt;/P&gt;

&lt;P&gt;If there's no way to disable the logging directly at the source and you just don't want the data indexed than you can configure Splunk to send the data to the null queue for that source IP address of the device. You do need to validate the IP address is the actual hostname from a Splunk search and if it's not, update the host stanza to the correct hostname for the device.&lt;/P&gt;

&lt;P&gt;It's going to be a combination of props and transforms on your indexer(s).&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;
[host::10.xx.xx.xx]
TRANSFORMS-null = setnull
&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;
[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue
&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jun 2016 17:14:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216113#M42523</guid>
      <dc:creator>shaskell_splunk</dc:creator>
      <dc:date>2016-06-22T17:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop indexing a specific log for a particular switch in my production environment?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216114#M42524</link>
      <description>&lt;P&gt;We have pointed the syslog as splunk server.there is no universal forwarder. So if an user login in to the switch i don't want that log should be capture on splunk.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 17:50:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216114#M42524</guid>
      <dc:creator>vineeth10</dc:creator>
      <dc:date>2016-06-22T17:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop indexing a specific log for a particular switch in my production environment?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216115#M42525</link>
      <description>&lt;P&gt;Try the method I've suggested to drop any events coming from that device from being indexed. The key is to make sure you have the correct hostname in the props.conf stanza.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 18:07:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216115#M42525</guid>
      <dc:creator>shaskell_splunk</dc:creator>
      <dc:date>2016-06-22T18:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop indexing a specific log for a particular switch in my production environment?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216116#M42526</link>
      <description>&lt;P&gt;i tried but it didn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jul 2016 05:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216116#M42526</guid>
      <dc:creator>vineeth10</dc:creator>
      <dc:date>2016-07-10T05:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop indexing a specific log for a particular switch in my production environment?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216117#M42527</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;props.conf: (you can replace sourcetype with syslog)&lt;/P&gt;

&lt;P&gt;[syslog]&lt;BR /&gt;
TRANSFORMS-switch = switchFilter&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;P&gt;[switchFilter]&lt;BR /&gt;
REGEX = 10.xx.xx.xx&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;Make sure you reload the splunk (https://:8000/debug/refresh) or restart the splunk service after applying the props and tranforms.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sp&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 15:05:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216117#M42527</guid>
      <dc:creator>spsrasru</dc:creator>
      <dc:date>2016-07-15T15:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop indexing a specific log for a particular switch in my production environment?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216118#M42528</link>
      <description>&lt;P&gt;hope it won't stop entire logs for the particular device, as the intention is not to stop the entire logs but just a specify log from the device. &lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 15:41:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216118#M42528</guid>
      <dc:creator>vineeth10</dc:creator>
      <dc:date>2016-07-15T15:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop indexing a specific log for a particular switch in my production environment?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216119#M42529</link>
      <description>&lt;P&gt;Never mind. I thought you are trying to stop all the events from particular device. the above configuration i gave is to stop all the events.&lt;/P&gt;

&lt;P&gt;shaskell is already gave what you need but to discard specific events and keep the rest:&lt;/P&gt;

&lt;P&gt;props:&lt;/P&gt;

&lt;P&gt;[host::10.xx.xx.xx]&lt;BR /&gt;
TRANSFORMS-null= setnull&lt;/P&gt;

&lt;P&gt;transforms:&lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = string you need to discard&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 16:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216119#M42529</guid>
      <dc:creator>spsrasru</dc:creator>
      <dc:date>2016-07-15T16:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop indexing a specific log for a particular switch in my production environment?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216120#M42530</link>
      <description>&lt;P&gt;@vineeth10 You may want to take a look at this: &lt;A href="http://www.georgestarcher.com/splunk-success-with-syslog/"&gt;http://www.georgestarcher.com/splunk-success-with-syslog/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 16:27:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-stop-indexing-a-specific-log-for-a-particular-switch-in/m-p/216120#M42530</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2016-07-15T16:27:58Z</dc:date>
    </item>
  </channel>
</rss>

