linux-audit.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: Disabling rsyslog rate-limiting just for audit/audispd
Date: Thu, 18 May 2017 15:03:03 -0400	[thread overview]
Message-ID: <1516452.5oH9OXy6Nq@x2> (raw)
In-Reply-To: <CAMGqvExCqpCk5Zcv8h8V=T+eog_sszpkDTA9yK01_5YxONWC7g@mail.gmail.com>

On Thursday, May 18, 2017 2:27:11 PM EDT Stephen Buchanan wrote:
> With the caveat that I am perhaps asking the wrong audience, I'm hoping
> that someone has hit this issue before, and possibly solved it.
> 
> I've set up a number of servers in my environment to forward all audit log
> entries via audispd and rsyslog to a central rsyslog receiver where they
> are parsed and saved. All that is working (audit is sent with LOG_LOCAL6 in
> audispd syslog plugin, "local6.* @@loghost:514" is in rsyslog.conf).
> 
> The problem/question I have is whether it is possible to turn off
> rate-limiting for rsyslog *only for audit traffic*. Leaving aside that I
> need to tune the audit rules better, on heavily loaded servers the rsyslogd
> starts dropping most of the audit traffic due to the rate-limiting
> parameters. I know I can turn it off (or set it much higher) for all
> rsyslog, but is there any way to selectively set the rate limit by either
> source (audispd) or facility (local6)?
> 
> I've just joined the rsyslog mailing list, if I fail here then I'll ask
> there, but I'm afraid that the answer will have something to do with using
> rsyslog v8, and I'm stuck with the RHEL7-provided v7.4.7.

There is a rate limit in the kernel but if its exceeded it consults the 
failure flag which will probably do something bad as an action in addition to 
dropping the event. So, that's not exactly what you want.

I suspect that you want all of your events spooled (rather than dropped) and 
then forwarded at a predetermined rate so as not to flood rsyslog. 
Unfortunately there is nothing like that today for audit events. I think 
you'll need to do something in the rsyslog setting.

-Steve

      reply	other threads:[~2017-05-18 19:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-18 18:27 Disabling rsyslog rate-limiting just for audit/audispd Stephen Buchanan
2017-05-18 19:03 ` Steve Grubb [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=1516452.5oH9OXy6Nq@x2 \
    --to=sgrubb@redhat.com \
    --cc=linux-audit@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;
as well as URLs for NNTP newsgroup(s).