<?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 edit my props and transforms to filter out certain phrases in ASA logs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-props-and-transforms-to-filter-out-certain/m-p/392398#M70101</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I've read a few articles on filtering data inputs. Basically I have a noisy ASA that I'm logging, and I want to discard anything with these phrases in them. They are eating up my licensing quota and I don't need them.&lt;/P&gt;

&lt;P&gt;Built outbound TCP connection&lt;BR /&gt;
Teardown TCP connection&lt;BR /&gt;
Teardown UDP connection&lt;BR /&gt;
Built dynamic TCP translation&lt;BR /&gt;
Teardown dynamic TCP translation&lt;/P&gt;

&lt;P&gt;I have the following set up for my configuration files but it's not working. Can someone help me out, I'm not good at regex &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;
transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[geo_us_states]
external_type = geo
filename = geo_us_states.kmz

[geo_countries]
external_type = geo
filename = geo_countries.kmz

[geo_attr_us_states]
filename = geo_attr_us_states.csv

[geo_attr_countries]
filename = geo_attr_countries.csv

[discard_events]
REGEX = Built outbound TCP connection
DEST_KEY = queue
FORMAT = nullQueue
[discard_events]
REGEX = Teardown dynamic TCP translation
DEST_KEY = queue
FORMAT = nullQueue
[discard_events]
REGEX = Teardown TCP connection
DEST_KEY = queue
FORMAT = nullQueue
[discard_events]
REGEX = Teardown UDP connection
DEST_KEY = queue
FORMAT = nullQueue
[discard_events]
REGEX = Built dynamic TCP translation
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#   Version 7.1.1
[sendmail]
FIELDALIAS-msgid = mid AS msgid
EXTRACT-qid = sendmail[^\]]*\]:\s+(?[^:]*):
 [source::/var/log/foo]
 # Transforms must be applied in this order
 # to make sure events are dropped on the
 # floor prior to making their way to the
 # index processor
TRANSFORMS-set = discard_events
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Jun 2018 16:34:16 GMT</pubDate>
    <dc:creator>jlarkins</dc:creator>
    <dc:date>2018-06-14T16:34:16Z</dc:date>
    <item>
      <title>How to edit my props and transforms to filter out certain phrases in ASA logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-props-and-transforms-to-filter-out-certain/m-p/392398#M70101</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I've read a few articles on filtering data inputs. Basically I have a noisy ASA that I'm logging, and I want to discard anything with these phrases in them. They are eating up my licensing quota and I don't need them.&lt;/P&gt;

&lt;P&gt;Built outbound TCP connection&lt;BR /&gt;
Teardown TCP connection&lt;BR /&gt;
Teardown UDP connection&lt;BR /&gt;
Built dynamic TCP translation&lt;BR /&gt;
Teardown dynamic TCP translation&lt;/P&gt;

&lt;P&gt;I have the following set up for my configuration files but it's not working. Can someone help me out, I'm not good at regex &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;
transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[geo_us_states]
external_type = geo
filename = geo_us_states.kmz

[geo_countries]
external_type = geo
filename = geo_countries.kmz

[geo_attr_us_states]
filename = geo_attr_us_states.csv

[geo_attr_countries]
filename = geo_attr_countries.csv

[discard_events]
REGEX = Built outbound TCP connection
DEST_KEY = queue
FORMAT = nullQueue
[discard_events]
REGEX = Teardown dynamic TCP translation
DEST_KEY = queue
FORMAT = nullQueue
[discard_events]
REGEX = Teardown TCP connection
DEST_KEY = queue
FORMAT = nullQueue
[discard_events]
REGEX = Teardown UDP connection
DEST_KEY = queue
FORMAT = nullQueue
[discard_events]
REGEX = Built dynamic TCP translation
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#   Version 7.1.1
[sendmail]
FIELDALIAS-msgid = mid AS msgid
EXTRACT-qid = sendmail[^\]]*\]:\s+(?[^:]*):
 [source::/var/log/foo]
 # Transforms must be applied in this order
 # to make sure events are dropped on the
 # floor prior to making their way to the
 # index processor
TRANSFORMS-set = discard_events
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 16:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-props-and-transforms-to-filter-out-certain/m-p/392398#M70101</guid>
      <dc:creator>jlarkins</dc:creator>
      <dc:date>2018-06-14T16:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my props and transforms to filter out certain phrases in ASA logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-props-and-transforms-to-filter-out-certain/m-p/392399#M70102</link>
      <description>&lt;P&gt;In props.conf, each of your TRANSFORMS-set values must be listed and comma separated &lt;/P&gt;

&lt;P&gt;ex:&lt;BR /&gt;
TRANSFORMS-set = discard_events, discard_events1, discard_events2, discard_events3, discard_events4&lt;/P&gt;

&lt;P&gt;Then go to your transforms.conf and make sure each stanza correctly corresponds to each value in your TRANSFORMS-set from props.conf&lt;/P&gt;

&lt;P&gt;transforms.conf stanza ex:&lt;BR /&gt;
 [discard_events]&lt;BR /&gt;
 REGEX = Built outbound TCP connection&lt;BR /&gt;
 DEST_KEY = queue&lt;BR /&gt;
 FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[discard_events1]&lt;BR /&gt;
 REGEX = Teardown dynamic TCP translation&lt;BR /&gt;
 DEST_KEY = queue&lt;BR /&gt;
 FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[discard_events2]&lt;BR /&gt;
 REGEX = Teardown TCP connection&lt;BR /&gt;
 DEST_KEY = queue&lt;BR /&gt;
 FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[discard_events3]&lt;BR /&gt;
 REGEX = Teardown UDP connection&lt;BR /&gt;
 DEST_KEY = queue&lt;BR /&gt;
 FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[discard_events4]&lt;BR /&gt;
 REGEX = Built dynamic TCP translation&lt;BR /&gt;
 DEST_KEY = queue&lt;BR /&gt;
 FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;Let me know if that helped!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-props-and-transforms-to-filter-out-certain/m-p/392399#M70102</guid>
      <dc:creator>lacastillo</dc:creator>
      <dc:date>2020-09-29T20:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my props and transforms to filter out certain phrases in ASA logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-props-and-transforms-to-filter-out-certain/m-p/392400#M70103</link>
      <description>&lt;P&gt;I did that and it still wasn't dropping the data then I put the TRANSFORMS-set line at the top of the props.conf line instead of at the bottom and that fixed it! Thanks a bunch&lt;/P&gt;

&lt;P&gt;P.s. for future viewers the files to edit are these for the ASA addon: &lt;BR /&gt;
etc\apps\Splunk_TA_cisco-asa\default&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:04:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-props-and-transforms-to-filter-out-certain/m-p/392400#M70103</guid>
      <dc:creator>jlarkins</dc:creator>
      <dc:date>2020-09-29T20:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my props and transforms to filter out certain phrases in ASA logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-props-and-transforms-to-filter-out-certain/m-p/392401#M70104</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;You shouldn't edit the files in the default folders, as any changes you make may be overwritten when you install a new version of Splunk or a new version of an app. You should create the configuration file in the corresponding local folder (if one doesn't already exist) and add any changes there. The local folders should remain unaffected when installing new versions of apps or Splunk.&lt;/P&gt;

&lt;P&gt;How to manage configuration files is covered in the Admin documentation &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.1/Admin/Aboutconfigurationfiles" target="_blank"&gt;here&lt;/A&gt;(&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.1/Admin/Aboutconfigurationfiles" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.1/Admin/Aboutconfigurationfiles&lt;/A&gt;).  &lt;/P&gt;

&lt;P&gt;One of the problems with your original transforms.conf was that you reused the stanza name [discard_events], the stanza names need to be unique. I suspect you ended up with just the last of the [discard_events] being in place. There is a utility called &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Usebtooltotroubleshootconfigurations" target="_blank"&gt;btool&lt;/A&gt; (&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Usebtooltotroubleshootconfigurations" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Usebtooltotroubleshootconfigurations&lt;/A&gt;) that among other things allows you to query what Splunk thinks is defined in the configuration files. &lt;/P&gt;

&lt;P&gt;Enjoy your journey with Splunk&lt;/P&gt;

&lt;P&gt;For some reason the hyperlinks aren't working, so I've placed the links in brackets.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:05:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-props-and-transforms-to-filter-out-certain/m-p/392401#M70104</guid>
      <dc:creator>RHASQaL</dc:creator>
      <dc:date>2020-09-29T20:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my props and transforms to filter out certain phrases in ASA logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-props-and-transforms-to-filter-out-certain/m-p/392402#M70105</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
Splunk best practices advise that you don’t edit any files in the default folder, but to create a new configuration file in the corresponding local folder, if one doesn’t already exist. The problem with making changes to the default folder is that any changes may be overwritten when a new version of Splunk, or a new version of the app is installed. Configuration file maintenance is covered in the Admin documentation here - &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.1/Admin/Aboutconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.1/Admin/Aboutconfigurationfiles&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;One problem with your original transforms.conf is the duplication of the [discard_events] stanza, the stanza names need to be unique. I suspect you ended up with just the final occurrence of the stanza being recognised by Splunk. There is a command line utility called btool - &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Usebtooltotroubleshootconfigurations"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Usebtooltotroubleshootconfigurations&lt;/A&gt;  - that, amongst other things, allows you to troubleshoot configuration file issues or see what values are being used by your Splunk Enterprise installation.&lt;/P&gt;

&lt;P&gt;Enjoy your Splunk journey.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 09:12:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-props-and-transforms-to-filter-out-certain/m-p/392402#M70105</guid>
      <dc:creator>RHASQaL</dc:creator>
      <dc:date>2018-06-19T09:12:45Z</dc:date>
    </item>
  </channel>
</rss>

