<?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 transforms.conf: Need to ignore specific events. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-Need-to-ignore-specific-events/m-p/679521#M113543</link>
    <description>&lt;P&gt;I have a simply Splunk set-up.&amp;nbsp; about 120 or so Linux servers (that are all basically appliances) w/ universal forwarder installed, and a single Linux server running Splunk Enterprise acting as the indexer, search head, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I have is that the forwarders must feed the server's audit log into Splunk.&amp;nbsp; That feed is actually working fine, but it's flooding the server, and causing me to go over my license limit.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically, the appliance app has an event in cron that runs very often, and it's flooding the audit log with file access, file mod, etc events, which is ballooning the amount of data I send to Splunk Enterprise.&amp;nbsp; Data that IO simply do not need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is filter out these specific events, but &lt;U&gt;&lt;STRONG&gt;ONLY&lt;/STRONG&gt;&lt;/U&gt; for this specific user.&amp;nbsp; I believe this can be done using&amp;nbsp;transforms.conf and props.conf&amp;nbsp; on the indexer, but I'm having trouble getting the syntax and fields right.&lt;/P&gt;&lt;P&gt;Can anyone assist with this?&lt;BR /&gt;&lt;BR /&gt;Here's the data I need to remove...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=auditd
acct=appuser
exe=/usr/sbin/crond
exe=/usr/bin/crontab&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically ANY events in the audit log for user "appuser" that reference either "/usr/bin/crontab" or "usr/bin/crontab" need to be dropped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are 2 examples of the events I want to drop.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;type=USER_END msg=audit(03/04/2024 15:58:02.701:5726) : pid=26919 uid=root auid=appuser ses=184 msg='op=PAM:session_close grantors=pam_loginuid,pam_keyinit,pam_limits,pam_systemd acct=appuser exe=/usr/sbin/crond hostname=? addr=? terminal=cron res=success' 

type=USER_ACCT msg=audit(03/04/2024 15:58:02.488:5723) : pid=26947 uid=appuser auid=appuser ses=184 msg='op=PAM:accounting grantors=pam_access,pam_unix,pam_localuser acct=appuser exe=/usr/bin/crontab hostname=? addr=? terminal=cron res=success' &lt;/LI-CODE&gt;&lt;P&gt;Can this be done?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 22:01:37 GMT</pubDate>
    <dc:creator>Egyas</dc:creator>
    <dc:date>2024-03-04T22:01:37Z</dc:date>
    <item>
      <title>transforms.conf: Need to ignore specific events.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-Need-to-ignore-specific-events/m-p/679521#M113543</link>
      <description>&lt;P&gt;I have a simply Splunk set-up.&amp;nbsp; about 120 or so Linux servers (that are all basically appliances) w/ universal forwarder installed, and a single Linux server running Splunk Enterprise acting as the indexer, search head, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I have is that the forwarders must feed the server's audit log into Splunk.&amp;nbsp; That feed is actually working fine, but it's flooding the server, and causing me to go over my license limit.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically, the appliance app has an event in cron that runs very often, and it's flooding the audit log with file access, file mod, etc events, which is ballooning the amount of data I send to Splunk Enterprise.&amp;nbsp; Data that IO simply do not need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is filter out these specific events, but &lt;U&gt;&lt;STRONG&gt;ONLY&lt;/STRONG&gt;&lt;/U&gt; for this specific user.&amp;nbsp; I believe this can be done using&amp;nbsp;transforms.conf and props.conf&amp;nbsp; on the indexer, but I'm having trouble getting the syntax and fields right.&lt;/P&gt;&lt;P&gt;Can anyone assist with this?&lt;BR /&gt;&lt;BR /&gt;Here's the data I need to remove...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=auditd
acct=appuser
exe=/usr/sbin/crond
exe=/usr/bin/crontab&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically ANY events in the audit log for user "appuser" that reference either "/usr/bin/crontab" or "usr/bin/crontab" need to be dropped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are 2 examples of the events I want to drop.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;type=USER_END msg=audit(03/04/2024 15:58:02.701:5726) : pid=26919 uid=root auid=appuser ses=184 msg='op=PAM:session_close grantors=pam_loginuid,pam_keyinit,pam_limits,pam_systemd acct=appuser exe=/usr/sbin/crond hostname=? addr=? terminal=cron res=success' 

type=USER_ACCT msg=audit(03/04/2024 15:58:02.488:5723) : pid=26947 uid=appuser auid=appuser ses=184 msg='op=PAM:accounting grantors=pam_access,pam_unix,pam_localuser acct=appuser exe=/usr/bin/crontab hostname=? addr=? terminal=cron res=success' &lt;/LI-CODE&gt;&lt;P&gt;Can this be done?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 22:01:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-Need-to-ignore-specific-events/m-p/679521#M113543</guid>
      <dc:creator>Egyas</dc:creator>
      <dc:date>2024-03-04T22:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf: Need to ignore specific events.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-Need-to-ignore-specific-events/m-p/679552#M113547</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/252472"&gt;@Egyas&lt;/a&gt;&amp;nbsp;Hello, You can drop the events using props.conf and transforms.conf. So, first thing you have to match the events which one you want to drop using regex. Let's say if you want to drop the event called "acct=appuser", write the regex for that and apply the props.conf and transforms.conf and send those data to the null queue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;[source::xxxxx]&lt;BR /&gt;TRANSFORMS-set=setnull&lt;/P&gt;&lt;P&gt;Transforms.conf&amp;nbsp;&lt;/P&gt;&lt;P&gt;[setnull]&lt;BR /&gt;REGEX = &amp;lt;your regex&amp;gt; i.e.,&amp;nbsp;acct=appuser&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.0/Admin/Propsconf#props.conf.example" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.0/Admin/Propsconf#props.conf.example&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.0/Admin/Transformsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.0/Admin/Transformsconf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;* NOTE: Keys are case-sensitive. Use the following keys exactly as they
        appear.

queue&amp;nbsp;: Specify which queue to send the event to (can be nullQueue, indexQueue).
        * indexQueue is the usual destination for events going through the
          transform-handling processor.
        * nullQueue is a destination which causes the events to be
          dropped entirely.
_raw &amp;nbsp;: The raw text of the event.
_meta&amp;nbsp;: A space-separated list of metadata for an event.
_time&amp;nbsp;: The timestamp of the event, in seconds since 1/1/1970 UTC.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TRANSFORMS-&amp;lt;class&amp;gt; = &amp;lt;transform_stanza_name&amp;gt;, &amp;lt;transform_stanza_name2&amp;gt;,...
* Used for creating indexed fields (index-time field extractions).
* &amp;lt;class&amp;gt; is a unique literal string that identifies the namespace of the
  field you're extracting.
  **Note:** &amp;lt;class&amp;gt; values do not have to follow field name syntax
  restrictions. You can use characters other than a-z, A-Z, and 0-9, and
  spaces are allowed. &amp;lt;class&amp;gt; values are not subject to key cleaning.
* &amp;lt;transform_stanza_name&amp;gt; is the name of your stanza from transforms.conf.
* Use a comma-separated list to apply multiple transform stanzas to a single
  TRANSFORMS extraction. Splunk software applies them in the list order. For
  example, this sequence ensures that the [yellow] transform stanza gets
  applied first, then [blue], and then [red]:
        [source::color_logs]
        TRANSFORMS-colorchange = yellow, blue, red
* See the RULESET-&amp;lt;class&amp;gt; setting for additional index-time transformation options.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_0-1709623579558.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29593i2B691C6F3CCFDEF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_0-1709623579558.png" alt="kiran_panchavat_0-1709623579558.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 07:31:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-Need-to-ignore-specific-events/m-p/679552#M113547</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2024-03-05T07:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf: Need to ignore specific events.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-Need-to-ignore-specific-events/m-p/679558#M113549</link>
      <description>&lt;P&gt;Luckily, with auditd logs the order of the fields should not change so you can match the events to&lt;/P&gt;&lt;PRE&gt;acct=appuser.*exe=/usr/(sbin/crond|bin/crontab)&lt;/PRE&gt;&lt;P&gt;and just filter out (send to nullQueue) events matching this regex.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 08:30:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-Need-to-ignore-specific-events/m-p/679558#M113549</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-03-05T08:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf: Need to ignore specific events.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-Need-to-ignore-specific-events/m-p/679622#M113570</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264857"&gt;@kiran_panchavat&lt;/a&gt;&amp;nbsp;, thank you guys so much for the assist.&amp;nbsp; I really appreciate it.&amp;nbsp; I'll give it a test and see if it works for me.&amp;nbsp; Thanks agaion!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 16:56:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-Need-to-ignore-specific-events/m-p/679622#M113570</guid>
      <dc:creator>Egyas</dc:creator>
      <dc:date>2024-03-05T16:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf: Need to ignore specific events.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-Need-to-ignore-specific-events/m-p/679632#M113573</link>
      <description>&lt;P&gt;I just tested this and it works perfectly.&amp;nbsp; &amp;nbsp;I tweaked a few names and combined the file contents from &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264857"&gt;@kiran_panchavat&lt;/a&gt;&amp;nbsp;with the regex from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;and I'm good to go.&amp;nbsp; Thanks guys!&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::auditd]
TRANSFORMS-set=setnull&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[setnull]
REGEX = acct=appuser.*exe=/usr/(sbin/crond|bin/crontab)
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 18:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-Need-to-ignore-specific-events/m-p/679632#M113573</guid>
      <dc:creator>Egyas</dc:creator>
      <dc:date>2024-03-05T18:56:45Z</dc:date>
    </item>
  </channel>
</rss>

