<?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 drop events on a heavy forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-events-on-a-heavy-forwarder/m-p/546307#M90994</link>
    <description>&lt;P&gt;I even tried changing&amp;nbsp;&lt;SPAN&gt;[host::XX.XX.XXX.XXX] to [host::hostname] but still no luck&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 21:42:27 GMT</pubDate>
    <dc:creator>vinaypradhan</dc:creator>
    <dc:date>2021-03-31T21:42:27Z</dc:date>
    <item>
      <title>How to drop events on a heavy forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-events-on-a-heavy-forwarder/m-p/546305#M90993</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;BR /&gt;I have a heavy forwarder configured this way&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;inputs.conf&lt;BR /&gt;[udp://514]&lt;BR /&gt;sourcetype = syslog&lt;BR /&gt;index = abc&lt;BR /&gt;connection_host = ip&lt;BR /&gt;disabled = 0&lt;BR /&gt;_TCP_ROUTING =MyRoute&lt;BR /&gt;&lt;BR /&gt;So any server sending syslog on UDP 514 is hitting my heavy forwarder and getting sent to my indexers.&amp;nbsp;&lt;BR /&gt;I want to block events from a set of servers, as I don't want them to be indexed. They are consuming my licenses.&amp;nbsp;&lt;BR /&gt;I am trying to do this in props.conf and transforms.conf&lt;BR /&gt;&lt;BR /&gt;props.conf&lt;BR /&gt;[host::XX.XX.XXX.XXX]&lt;BR /&gt;TRANSFORMS-abc = drop_events&lt;BR /&gt;&lt;BR /&gt;and in my transforms.conf, I have this&amp;nbsp;&lt;/P&gt;&lt;P&gt;[drop_events]&lt;BR /&gt;REGEX =.&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;BR /&gt;&lt;BR /&gt;But this is not dropping the events from this server. I can still events being indexed real time when i search.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong? I have a few more servers which I need to block this way.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 20:55:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-events-on-a-heavy-forwarder/m-p/546305#M90993</guid>
      <dc:creator>vinaypradhan</dc:creator>
      <dc:date>2021-03-31T20:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop events on a heavy forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-events-on-a-heavy-forwarder/m-p/546307#M90994</link>
      <description>&lt;P&gt;I even tried changing&amp;nbsp;&lt;SPAN&gt;[host::XX.XX.XXX.XXX] to [host::hostname] but still no luck&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 21:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-events-on-a-heavy-forwarder/m-p/546307#M90994</guid>
      <dc:creator>vinaypradhan</dc:creator>
      <dc:date>2021-03-31T21:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop events on a heavy forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-events-on-a-heavy-forwarder/m-p/561403#M100039</link>
      <description>&lt;P&gt;For syslog events, dropping events works in a different way. I was able to finally get it to work. Posting it here, so that it might help someone else who is facing the same kind of situation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because of the way Splunk identifies and cooks a syslog, the syslog event ends up getting cooked using one of the configurations in the default props.conf called&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://cms.prod.bloomberg.com/team/pages/createpage.action?spaceKey=se&amp;amp;title=syslog-host&amp;amp;linkCreation=true&amp;amp;fromPageId=327519086" target="_blank" rel="noopener"&gt;syslog-host&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;We will have to override that so that the events get dropped first before Splunk tries to cook the event.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For example, if we want to drop all syslog events coming from server that have expr in their names, then this needs to be done this way&lt;BR /&gt;&lt;BR /&gt;Ad this to prop.sconf&lt;/P&gt;&lt;P&gt;#syslog&lt;BR /&gt;[syslog]&lt;BR /&gt;TRANSFORMS = drop_events_syslog, syslog-host&lt;BR /&gt;&lt;BR /&gt;And add drop_events_syslog in transforms.conf:&lt;/P&gt;&lt;P&gt;[drop_events_syslog]&lt;BR /&gt;REGEX = :\d\d\s+(?:\d+\s+|(?:user|daemon|local.?)\.\w+\s+)*\[?(.*expr.*)\]?\s&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The most important thing here is that, in props.conf, we have to mention our drop stanza first and then also mention the syslog-host stanza. This will ensure syslog-host stanza gets handled after drop gets handled.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 15:52:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-events-on-a-heavy-forwarder/m-p/561403#M100039</guid>
      <dc:creator>vinaypradhan</dc:creator>
      <dc:date>2021-07-29T15:52:22Z</dc:date>
    </item>
  </channel>
</rss>

