public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: "Boyce, Kevin P [US] (AS)" <Kevin.Boyce@ngc.com>
To: Steve Grubb <sgrubb@redhat.com>,
	"linux-audit@redhat.com" <linux-audit@redhat.com>
Subject: RE: EXT :Re: Auditd Troubleshooting
Date: Thu, 6 Jun 2019 15:01:33 +0000	[thread overview]
Message-ID: <d2ec4e75b9384f488e852b24cf3db56b@XCGVAG30.northgrum.com> (raw)
In-Reply-To: <2858763.hD381QzqKc@x2>

Thanks Steve.  I thought you may have implemented this already!

Kevin

-----Original Message-----
From: Steve Grubb <sgrubb@redhat.com> 
Sent: Thursday, June 06, 2019 9:54 AM
To: linux-audit@redhat.com
Cc: Boyce, Kevin P [US] (AS) <Kevin.Boyce@ngc.com>
Subject: EXT :Re: Auditd Troubleshooting

On Thursday, June 6, 2019 9:31:41 AM EDT Boyce, Kevin P [US] (AS) wrote:
> Dear List,
> 
> It would be really great if there were an audit rule hit counter like 
> many firewalls have when IP traffic passes through a filter rule.
> 
> This would be beneficial for finding rules that might not be working 
> the as intended (to fix user implementation problems).
> 
> I'm thinking it would be a switch option on auditctl -l (maybe -h for 
> hitcount).  This would list each rule that the kernel has, and how 
> many times since auditd started that an event matched the rule.
> 
> Is this within the realm of feasibility?  Does this function exist 
> maybe elsewhere in the audit suite (like aureport)?

Assuming that you put a key on each rule, you can get this functionality like
this:

aureport --start boot --key --summary

And in cases where you have multiple rules with the same key, then add a number at the end like: time1, time2, time3, etc. Ausearch by default does partial word matching. So you can still run "ausearch -k time" and it will find all of them regardless of the number at the end.

-Steve

      reply	other threads:[~2019-06-06 15:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-06 13:31 Auditd Troubleshooting Boyce, Kevin P [US] (AS)
2019-06-06 13:54 ` Steve Grubb
2019-06-06 15:01   ` Boyce, Kevin P [US] (AS) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d2ec4e75b9384f488e852b24cf3db56b@XCGVAG30.northgrum.com \
    --to=kevin.boyce@ngc.com \
    --cc=linux-audit@redhat.com \
    --cc=sgrubb@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox