<?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 to filter out specific events sent via Universal Forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464022#M80015</link>
    <description>&lt;P&gt;I have one indexer that is receiving events from a remote Windows host via the Universal Forwarder.&lt;/P&gt;
&lt;P&gt;I am trying to filter out events that contain the string 'empty logger' in the log file &lt;CODE&gt;D:\Logs\Test\testlog5_29_20.log&lt;/CODE&gt; file on the remote server.&lt;/P&gt;
&lt;P&gt;I have attempted to use the &lt;CODE&gt;props.conf&lt;/CODE&gt; and the &lt;CODE&gt;transforms.conf&lt;/CODE&gt; files on the indexer to send the events matching the regex to nullqueue, but the events in question are still making it.&lt;/P&gt;
&lt;P&gt;I am suspecting that the source stanza in the &lt;CODE&gt;props.conf&lt;/CODE&gt; file isn't correct, as I am specifying a directory that only exists on the remote Windows hosts.&lt;/P&gt;
&lt;P&gt;Am I correct in that assumption?&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jun 2020 00:25:38 GMT</pubDate>
    <dc:creator>rkymtnhigh</dc:creator>
    <dc:date>2020-06-07T00:25:38Z</dc:date>
    <item>
      <title>How to filter out specific events sent via Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464022#M80015</link>
      <description>&lt;P&gt;I have one indexer that is receiving events from a remote Windows host via the Universal Forwarder.&lt;/P&gt;
&lt;P&gt;I am trying to filter out events that contain the string 'empty logger' in the log file &lt;CODE&gt;D:\Logs\Test\testlog5_29_20.log&lt;/CODE&gt; file on the remote server.&lt;/P&gt;
&lt;P&gt;I have attempted to use the &lt;CODE&gt;props.conf&lt;/CODE&gt; and the &lt;CODE&gt;transforms.conf&lt;/CODE&gt; files on the indexer to send the events matching the regex to nullqueue, but the events in question are still making it.&lt;/P&gt;
&lt;P&gt;I am suspecting that the source stanza in the &lt;CODE&gt;props.conf&lt;/CODE&gt; file isn't correct, as I am specifying a directory that only exists on the remote Windows hosts.&lt;/P&gt;
&lt;P&gt;Am I correct in that assumption?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 00:25:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464022#M80015</guid>
      <dc:creator>rkymtnhigh</dc:creator>
      <dc:date>2020-06-07T00:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out specific events sent via Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464023#M80016</link>
      <description>&lt;P&gt;Please share a sample event (sanitized) and your current props and transforms for the sourcetype.&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 20:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464023#M80016</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-29T20:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out specific events sent via Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464024#M80017</link>
      <description>&lt;P&gt;We are doing this in the following fashion - but we would need to see how you have your configs formatted:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype:to:modify]
TRANSFORMS-null = StanzaNameInTransforms
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is simply the name we are giving it.  It must start with TRANSFORMS but you can use -"name" to have multiple TRANSFORMS on one sourcetype.&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[StanzaNameInTransforms]
REGEX = 
DEST_KEY= queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Your REGEX can be a partial portion of a line.  I would play around with that bit but in one of our examples, we simply have a string that shows up in our examples we want dropped.  From your example it should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[StanzaNameInTransforms]
REGEX = empty logger
DEST_KEY= queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 May 2020 20:49:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464024#M80017</guid>
      <dc:creator>mchristopherson</dc:creator>
      <dc:date>2020-05-29T20:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out specific events sent via Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464025#M80018</link>
      <description>&lt;P&gt;I think my issues lies with my props.conf source..&lt;BR /&gt;
I am currently using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::d:\logs\...\*.log]
TRANSFORMS-null = setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried using the sourcetype that shows up when I search these events "SampleSourcetype2"&lt;/P&gt;

&lt;P&gt;Here is how I have it set:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype::SampleSourcetype2]
TRANSFORMS-null = setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then in transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = empty logger
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The events with "empty logger" are still being indexed however.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 16:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464025#M80018</guid>
      <dc:creator>rkymtnhigh</dc:creator>
      <dc:date>2020-06-01T16:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out specific events sent via Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464026#M80019</link>
      <description>&lt;P&gt;That syntax looks OK (well not so much. See my later comment).  What does the &lt;CODE&gt;[setnull]&lt;/CODE&gt; stanza in your transforms.conf file look like?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 16:46:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464026#M80019</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-01T16:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out specific events sent via Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464027#M80020</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; [setnull]
 REGEX = empty logger
 DEST_KEY = queue
 FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jun 2020 16:47:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464027#M80020</guid>
      <dc:creator>rkymtnhigh</dc:creator>
      <dc:date>2020-06-01T16:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out specific events sent via Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464028#M80021</link>
      <description>&lt;P&gt;Resolved the issue using [source::....log] stanza in props.conf.&lt;BR /&gt;
Thanks everyone for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 19:07:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464028#M80021</guid>
      <dc:creator>rkymtnhigh</dc:creator>
      <dc:date>2020-06-01T19:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out specific events sent via Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464029#M80022</link>
      <description>&lt;P&gt;BTW, &lt;CODE&gt;[sourcetype::SampleSourcetype2]&lt;/CODE&gt; is not supported in props.conf.  Use &lt;CODE&gt;[SampleSourcetype2]&lt;/CODE&gt;.&lt;BR /&gt;
Also, the backslashes must be escaped.  &lt;CODE&gt;source::d:\\logs\\...\\*.log&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 20:16:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-specific-events-sent-via-Universal-Forwarder/m-p/464029#M80022</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-01T20:16:34Z</dc:date>
    </item>
  </channel>
</rss>

