<?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: Excluding Specific keywords - Heavy Forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430247#M75314</link>
    <description>&lt;P&gt;Hi dyude @balcv , &lt;/P&gt;

&lt;P&gt;You can write a props and transforms for this ...&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Your sourcetype]
TRANSFORMS-set= zabbix,zabbix_agent
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[zabbix]
REGEX = Zabbix
DEST_KEY = queue
FORMAT = nullQueue

[zabbix_agent]
REGEX = Zabbix\sAgent
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will exclude all the &lt;CODE&gt;Zabbix&lt;/CODE&gt; and &lt;CODE&gt;Zabbix Agent&lt;/CODE&gt;  keywords present in the logs.&lt;/P&gt;

&lt;P&gt;Try this out and let me know if it works for you! &lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2019 06:26:49 GMT</pubDate>
    <dc:creator>vinod94</dc:creator>
    <dc:date>2019-03-13T06:26:49Z</dc:date>
    <item>
      <title>Excluding Specific keywords - Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430246#M75313</link>
      <description>&lt;P&gt;I'm wanting to exclude records with a particular keyword from being ingested by the indexer.&lt;/P&gt;

&lt;P&gt;I have several Windows servers all pointing to a heavy forwarder where the inputs.conf file determines which logs to ingest into the Splunk indexer however there is some selected content that I want to exclude that exists in some of the included logs.&lt;/P&gt;

&lt;P&gt;Specifically, I want to exclude any records that contain the word "Zabbix", or "Zabbix Agent".&lt;/P&gt;

&lt;P&gt;How can this be done and where is the best place to do this filtering?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 05:03:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430246#M75313</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2019-03-13T05:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding Specific keywords - Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430247#M75314</link>
      <description>&lt;P&gt;Hi dyude @balcv , &lt;/P&gt;

&lt;P&gt;You can write a props and transforms for this ...&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Your sourcetype]
TRANSFORMS-set= zabbix,zabbix_agent
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[zabbix]
REGEX = Zabbix
DEST_KEY = queue
FORMAT = nullQueue

[zabbix_agent]
REGEX = Zabbix\sAgent
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will exclude all the &lt;CODE&gt;Zabbix&lt;/CODE&gt; and &lt;CODE&gt;Zabbix Agent&lt;/CODE&gt;  keywords present in the logs.&lt;/P&gt;

&lt;P&gt;Try this out and let me know if it works for you! &lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 06:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430247#M75314</guid>
      <dc:creator>vinod94</dc:creator>
      <dc:date>2019-03-13T06:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding Specific keywords - Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430248#M75315</link>
      <description>&lt;P&gt;Thanks for the details @vindod94 .  Much appreciated.&lt;/P&gt;

&lt;P&gt;One question, in the props.conf, you have [Your sourcetype].  What should be in this header?  Does it relate to a windows log or is it just a name I assign it?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 21:37:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430248#M75315</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2019-03-13T21:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding Specific keywords - Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430249#M75316</link>
      <description>&lt;P&gt;@balcv, &lt;/P&gt;

&lt;P&gt;You just have to put &lt;CODE&gt;Your Sourcetype Name&lt;/CODE&gt; for which you are filtering the logs . So basically you can do this for a host OR source OR sourcetype. &lt;/P&gt;

&lt;P&gt;You can follow this props.conf doc, this will give you an idea. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/Admin/Propsconf"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 05:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430249#M75316</guid>
      <dc:creator>vinod94</dc:creator>
      <dc:date>2019-03-14T05:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding Specific keywords - Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430250#M75317</link>
      <description>&lt;P&gt;Thanks very much.  I have added the code as suggested, and restarted the heavy forwarder, however the Zabbix items are still getting through to the indexer.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 03:47:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430250#M75317</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2019-03-21T03:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding Specific keywords - Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430251#M75318</link>
      <description>&lt;P&gt;@balcv,&lt;BR /&gt;
Have you applied it on your sourcetype(your sourcetype name)? &lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 08:19:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430251#M75318</guid>
      <dc:creator>vinod94</dc:creator>
      <dc:date>2019-03-21T08:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding Specific keywords - Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430252#M75319</link>
      <description>&lt;P&gt;I think so, yes.&lt;/P&gt;

&lt;P&gt;Props.conf&lt;BR /&gt;
    [source::WinEventLog:Application]&lt;BR /&gt;
    TRANSFORMS-set= zabbix&lt;/P&gt;

&lt;P&gt;Data according to indexer:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index="winEventLog"&lt;/P&gt;

&lt;P&gt;3/22/19 8:22:52.000 AM     03/22/2019&lt;BR /&gt;
08:22:52 AM LogName=Application&lt;BR /&gt;
SourceName=Zabbix Agent EventCode=1&lt;BR /&gt;
EventType=3 Show all 19 lines host&lt;BR /&gt;
= EXIGE source =  WinEventLog:Application&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Does this look correct?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 21:24:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430252#M75319</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2019-03-21T21:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding Specific keywords - Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430253#M75320</link>
      <description>&lt;P&gt;It looks like the config details provided by vinod94 were in fact correct however I needed to modify the props.conf and transforms.conf on the indexer box and NOT on the heavy forwarder.&lt;/P&gt;

&lt;P&gt;When I worked through the data flow, the heavy forwarder is only being used as the deployment server and not receiving the logs for these specific data sources.  Once I updated the files on the indexer, I got the exact results I was hoping for.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 01:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430253#M75320</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2019-03-25T01:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding Specific keywords - Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430254#M75321</link>
      <description>&lt;P&gt;Glad! it worked for you! (Y)&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 04:46:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Excluding-Specific-keywords-Heavy-Forwarder/m-p/430254#M75321</guid>
      <dc:creator>vinod94</dc:creator>
      <dc:date>2019-03-25T04:46:40Z</dc:date>
    </item>
  </channel>
</rss>

