<?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 edit props.conf and transforms.conf on a heavy forwarder to keep specific events and discard the rest in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314434#M58877</link>
    <description>&lt;P&gt;This matches every character:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [setnull]
 REGEX = .
 DEST_KEY = queue
 FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So in effect you're sending every event to nullQueue if you execute the setnull transform prior to the other.&lt;/P&gt;

&lt;P&gt;Try this instead in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [firewall]
 TRANSFORMS-AAA = setparsing
 TRANSFOMRS-zzz = setnull
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Feb 2017 17:40:30 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2017-02-22T17:40:30Z</dc:date>
    <item>
      <title>How to edit props.conf and transforms.conf on a heavy forwarder to keep specific events and discard the rest</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314431#M58874</link>
      <description>&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[firewall]
TRANSFORMS-set = setnull,setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = 192\.168\.1\.1
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have a heavy forwarder with the following. What I want to do is only forward events that match the regex to our indexers for indexing and discard the rest. It doesn't matter what put in the REGEX section though nothing comes through even if I look at the logs and see that there are definitely matches.&lt;/P&gt;

&lt;P&gt;If I change props.conf to &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-set = setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get all events from the logs so that leads me to believe that my DEST_KEY and FORMAT or configured correctly. &lt;/P&gt;

&lt;P&gt;Why isn't this filtering events and forwarding to my indexers?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 15:55:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314431#M58874</guid>
      <dc:creator>merrelr</dc:creator>
      <dc:date>2017-02-22T15:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf on a heavy forwarder to keep specific events and discard the rest</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314432#M58875</link>
      <description>&lt;P&gt;Here is the documentation for 'Keep specific events and discard the rest'. Comparing that with your configuration, I would say everything looks good syntax wise. So, one thing that may cause issues is that REGEX may be a problem. So, does your raw data is contains that specific IP address (as content, not as host)??&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 17:05:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314432#M58875</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-22T17:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf on a heavy forwarder to keep specific events and discard the rest</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314433#M58876</link>
      <description>&lt;P&gt;I'll doublecheck the regex. I've tried just making a really generic regex that match most events.&lt;/P&gt;

&lt;P&gt;Does the regex need to match the whole entry or does the regex just need to be in the entry.&lt;/P&gt;

&lt;P&gt;Would the following work?&lt;BR /&gt;
REGEX = 192.168.99.2&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2017-02-22T13:40:10+00:00 TS-C-ASA5585-L2L : %ASA-6-302013: Built inbound TCP connection 1299791138 for rav:192.168.99.2/26132 (192.168.99.2/26132) to erv:192.168.214.56/829 (192.168.214.56/829)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Feb 2017 17:33:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314433#M58876</guid>
      <dc:creator>merrelr</dc:creator>
      <dc:date>2017-02-22T17:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf on a heavy forwarder to keep specific events and discard the rest</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314434#M58877</link>
      <description>&lt;P&gt;This matches every character:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [setnull]
 REGEX = .
 DEST_KEY = queue
 FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So in effect you're sending every event to nullQueue if you execute the setnull transform prior to the other.&lt;/P&gt;

&lt;P&gt;Try this instead in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [firewall]
 TRANSFORMS-AAA = setparsing
 TRANSFOMRS-zzz = setnull
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Feb 2017 17:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314434#M58877</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-02-22T17:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf on a heavy forwarder to keep specific events and discard the rest</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314435#M58878</link>
      <description>&lt;P&gt;Splunk shows to set it up that way. &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:57:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314435#M58878</guid>
      <dc:creator>merrelr</dc:creator>
      <dc:date>2020-09-29T12:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf on a heavy forwarder to keep specific events and discard the rest</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314436#M58879</link>
      <description>&lt;P&gt;This is an example I have used before, you are correct the null goes first:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    transforms.conf
    [trash]
    REGEX= .
    DEST_KEY = queue
    FORMAT = nullQueue

    [whitelist]
    REGEX = type=PATH|type=SYSCALL
    DEST_KEY = queue
    FORMAT = indexQueue

    [blacklist]
   REGEX = \/u0(1|2|3|4|5)\/blah\/|\/u01\/blah\/JDE_HOME\/logs|\/u01\/blah\/XXD_HOME\/data
   DEST_KEY = queue
   FORMAT = nullQueue

props.conf
[source::/var/log/audit/audit.log*]
TRANSFORMS-set = trash,whitelist,blacklist
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Feb 2017 22:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314436#M58879</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2017-02-22T22:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf on a heavy forwarder to keep specific events and discard the rest</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314437#M58880</link>
      <description>&lt;P&gt;@merrelr - Did one of the answers below help provide a solution your question? If yes, please click “Accept” below the best answer to resolve this post and upvote anything that was helpful. If no, please leave a comment with more feedback. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 01:02:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314437#M58880</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-04-20T01:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf on a heavy forwarder to keep specific events and discard the rest</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314438#M58881</link>
      <description>&lt;P&gt;Figured out the solution to this problem.&lt;/P&gt;

&lt;P&gt;Turns out we had another props file with a firewall stanza as well. The stanzas in your props files need to be unique.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 12:46:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-on-a-heavy-forwarder/m-p/314438#M58881</guid>
      <dc:creator>merrelr</dc:creator>
      <dc:date>2017-04-21T12:46:40Z</dc:date>
    </item>
  </channel>
</rss>

