<?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 How can I block a single IP address from sending logs to Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/266829#M51113</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to block the specific host/IP from sending logs to indexers for the time being until I would need to enable to again later. Is there a way to block on indexer level and how?&lt;BR /&gt;
 please tell me the full steps so I can implement on live environment&lt;/P&gt;

&lt;P&gt;please tell me step by step&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2017 12:13:40 GMT</pubDate>
    <dc:creator>abhayparashar20</dc:creator>
    <dc:date>2017-02-01T12:13:40Z</dc:date>
    <item>
      <title>How can I block a single IP address from sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/266829#M51113</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to block the specific host/IP from sending logs to indexers for the time being until I would need to enable to again later. Is there a way to block on indexer level and how?&lt;BR /&gt;
 please tell me the full steps so I can implement on live environment&lt;/P&gt;

&lt;P&gt;please tell me step by step&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 12:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/266829#M51113</guid>
      <dc:creator>abhayparashar20</dc:creator>
      <dc:date>2017-02-01T12:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I block a single IP address from sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/266830#M51114</link>
      <description>&lt;P&gt;you can do this by using Props.conf and transforms.conf. the IP required to be filtered can be sent to null queue.&lt;/P&gt;

&lt;P&gt;you can use below stanza and modify it as per your requirement based on the log.&lt;/P&gt;

&lt;P&gt;Props.conf:&lt;/P&gt;

&lt;P&gt;[source::WMI:WinEventLog:Security]&lt;BR /&gt;
 TRANSFORMS-FilterEvent = FilterEvent560&lt;/P&gt;

&lt;P&gt;Transforms.conf:&lt;/P&gt;

&lt;P&gt;[FilterEvent560]&lt;BR /&gt;
 REGEX = (?msi)^EventCode=560&lt;BR /&gt;
 DEST_KEY = queue&lt;BR /&gt;
 FORMAT = nullQueue&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 09:30:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/266830#M51114</guid>
      <dc:creator>akshatj2</dc:creator>
      <dc:date>2018-04-12T09:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I block a single IP address from sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/266831#M51115</link>
      <description>&lt;P&gt;Routing to the nullqueue is one option, but a bit of a waste of resources as the data is still sent over the network and processed to some degree.&lt;/P&gt;

&lt;P&gt;I'd rather suggest using the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/inputsconf#TCP:"&gt;&lt;CODE&gt;acceptFrom&lt;/CODE&gt;&lt;/A&gt; setting on the respective input on the indexers, or just bluntly blocking that IP address in the firewall on the indexer (if you have one).&lt;/P&gt;

&lt;P&gt;If the source you want to disable is a forwarder, you could also disable the outputs on the forwarder (or just shut down the forwarder altogether).&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 11:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/266831#M51115</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-04-12T11:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I block a single IP address from sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/266832#M51116</link>
      <description>&lt;P&gt;You are better off tuning it closer to the source&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 22:42:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/266832#M51116</guid>
      <dc:creator>siddh01r</dc:creator>
      <dc:date>2020-03-10T22:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I block a single IP address from sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/266833#M51117</link>
      <description>&lt;P&gt;Put this on your indexer and restart:&lt;/P&gt;

&lt;P&gt;In props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::Your\.IP\.Address\.Here]
TRANSFORMS-drop_everything = drop_everything
[host::hostname.YourDomain.com]
TRANSFORMS-drop_everything = drop_everything
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[drop_everything]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Mar 2020 00:15:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/266833#M51117</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-11T00:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I block a single IP address from sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/266834#M51118</link>
      <description>&lt;P&gt;Why don't you just send &lt;CODE&gt;enabled=0&lt;/CODE&gt; to his &lt;CODE&gt;inputs.conf&lt;/CODE&gt; from the DS?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 00:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/266834#M51118</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-11T00:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I block a single IP address from sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/657949#M111328</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've tried this and it does not work. I need to block all data being written to our indexers from a set of IPs (network security devices that try and find compromises on our servers including the splunk HFs, UF, etc - so I do want to drop this at the index level).&lt;/P&gt;&lt;P&gt;I've placed this code in the etc system local props.conf and transforms.conf files - is that correct?&lt;/P&gt;&lt;P&gt;Doesn't seem to drop it either for IP address or hostname.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 07:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-block-a-single-IP-address-from-sending-logs-to-Splunk/m-p/657949#M111328</guid>
      <dc:creator>AliDodd</dc:creator>
      <dc:date>2023-09-19T07:18:46Z</dc:date>
    </item>
  </channel>
</rss>

