<?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: Problem filtering with props.conf and transform.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Problem-filtering-with-props-conf-and-transform-conf/m-p/329405#M61091</link>
    <description>&lt;P&gt;Are those really joined on one line?  If so, then you have no active configurations.  It should be like this:&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/system/local/props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Filtrage de tout sauf les accept
[JuniperFW]
TRANSFORMS-remove_juniper_permit = remove_juniper_permit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;$SPLUNK_HOME/etc/system/local/transform.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Accepter tout sauf les Permit
[remove_juniper_permit]
REGEX = action=Permit
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the &lt;EM&gt;real&lt;/EM&gt; problem is that this needs to be deployed to your &lt;EM&gt;Indexers&lt;/EM&gt; (not forwarder) and all Splunk instances there need to be restarted.  Then check the newly forwarded/indexed events (old &lt;CODE&gt;Permits&lt;/CODE&gt; will still be there).  This all assumes that the events have &lt;CODE&gt;sourcetype&lt;/CODE&gt; of &lt;CODE&gt;JuniperFW&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2017 14:32:16 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-09-11T14:32:16Z</dc:date>
    <item>
      <title>Problem filtering with props.conf and transform.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-filtering-with-props-conf-and-transform-conf/m-p/329404#M61090</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I parsed a lot of post on splunk answers, but I still have a problem to filter a specific sourcetype.&lt;/P&gt;

&lt;P&gt;Here the log line I want to trash&lt;BR /&gt;
&lt;CODE&gt;Sep 11 16:16:08 192.168.24.35 ROOT_FW_2: NetScreen device_id=ROOT_FW_2  [Root]system-notification-00257(traffic): start_time="2017-09-11 16:15:51" duration=16 policy_id=86 service=smtp (tcp) proto=6 src zone=zone_in dst zone=zone_out action=Permit sent=22056 rcvd=1284 src=192.168.1.1 dst=192.168.10.10 src_port=40049 dst_port=80 src-xlated ip=192.168.100.5 port=40049 dst-xlated ip=10.25.23.55 port=80 session_id=1015055 reason=Close - TCP FIN&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;On my Formwarder:&lt;BR /&gt;
$SPLUNK_HOME/etc/system/local/props.conf&lt;BR /&gt;
&lt;CODE&gt;# Filtrage de tout sauf les accept&lt;BR /&gt;
[JuniperFW]&lt;BR /&gt;
TRANSFORMS-Juniper-null = remove_juniper_permit&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/system/local/transform.conf&lt;BR /&gt;
&lt;CODE&gt;# Accepter tout sauf les Permit&lt;BR /&gt;
[remove_juniper_permit]&lt;BR /&gt;
REGEX = action=Permit&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Splunkd was restarted with no stanza errors&lt;BR /&gt;
My Splunk version is 6.6.3.&lt;/P&gt;

&lt;P&gt;Does anyone should have de clue or a way to debug this ?&lt;/P&gt;

&lt;P&gt;Thank's a lot.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-filtering-with-props-conf-and-transform-conf/m-p/329404#M61090</guid>
      <dc:creator>o_calmels</dc:creator>
      <dc:date>2020-09-29T15:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem filtering with props.conf and transform.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-filtering-with-props-conf-and-transform-conf/m-p/329405#M61091</link>
      <description>&lt;P&gt;Are those really joined on one line?  If so, then you have no active configurations.  It should be like this:&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/system/local/props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Filtrage de tout sauf les accept
[JuniperFW]
TRANSFORMS-remove_juniper_permit = remove_juniper_permit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;$SPLUNK_HOME/etc/system/local/transform.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Accepter tout sauf les Permit
[remove_juniper_permit]
REGEX = action=Permit
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the &lt;EM&gt;real&lt;/EM&gt; problem is that this needs to be deployed to your &lt;EM&gt;Indexers&lt;/EM&gt; (not forwarder) and all Splunk instances there need to be restarted.  Then check the newly forwarded/indexed events (old &lt;CODE&gt;Permits&lt;/CODE&gt; will still be there).  This all assumes that the events have &lt;CODE&gt;sourcetype&lt;/CODE&gt; of &lt;CODE&gt;JuniperFW&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 14:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-filtering-with-props-conf-and-transform-conf/m-p/329405#M61091</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-11T14:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem filtering with props.conf and transform.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-filtering-with-props-conf-and-transform-conf/m-p/329406#M61092</link>
      <description>&lt;P&gt;Hi o.calmels,&lt;BR /&gt;
in regex you have to insert a backslash before equal (=) because it's a special char.&lt;BR /&gt;
try something like this:&lt;BR /&gt;
in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[JuniperFW] 
TRANSFORMS-Juniper-null = remove_juniper_permit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[remove_juniper_permit] 
REGEX = action\=Permit 
DEST_KEY = queue 
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 14:35:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-filtering-with-props-conf-and-transform-conf/m-p/329406#M61092</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-09-11T14:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem filtering with props.conf and transform.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-filtering-with-props-conf-and-transform-conf/m-p/329407#M61093</link>
      <description>&lt;P&gt;Hi woodcock, cusello,&lt;/P&gt;

&lt;P&gt;Thank's for your response, all the lines are not joined in one line.&lt;BR /&gt;
After trying your solutions, i contact splunk support team and the error is simply on the filename ! &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;   &lt;/P&gt;

&lt;P&gt;Yes, I forgive the "s" at the and of &lt;CODE&gt;transforms.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Everything OK now !&lt;/P&gt;

&lt;P&gt;Olivier&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 07:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-filtering-with-props-conf-and-transform-conf/m-p/329407#M61093</guid>
      <dc:creator>o_calmels</dc:creator>
      <dc:date>2017-09-14T07:26:31Z</dc:date>
    </item>
  </channel>
</rss>

