Linux-audit Archive mirror
 help / color / mirror / Atom feed
From: kathy lyons <kathy.lyons@zayo.com>
To: linux-audit@redhat.com
Subject: sending audit logs only to audit.log via rsyslog
Date: Wed, 10 May 2023 09:43:04 -0400	[thread overview]
Message-ID: <CAN-5jM-V+J5aZTnu86NzgKw3LGSZ76LyTusrF-MF+V_LjV3u7A@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 923 bytes --]

 Good morning.  I am trying to get the audit logs to be written only to
audit.log.  Currently they are written to audit.log as well as syslog.
Here is my rsyslog.conf file - what am I doing wrong?

    module(load="imfile")
    module(load="imklog")
    module(load="imjournal")

    global(net.enableDNS="off" workDirectory=/var/spool/rsyslog"
maxMessageSize="128k")

   $IncludeConfig /etc/rsyslog.d/*.conf
   $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

  ##################### rules
    audit.*                                 ~/var/log/audit/audit.log
    auth.warning;authpriv.info   ~/var/log/auth.log
    *.*;auth,authpriv.none           ~/var/log/syslog
    cron.info                               ~/var/log/cron.log
    daemon.info                        ~/var/log/daemon.log
    kern.*                                  ~/var/log/kern.log
    user.info                             ~/var/log/user.log

[-- Attachment #1.2: Type: text/html, Size: 1545 bytes --]

[-- Attachment #2: Type: text/plain, Size: 107 bytes --]

--
Linux-audit mailing list
Linux-audit@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-audit

             reply	other threads:[~2023-05-10 13:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-10 13:43 kathy lyons [this message]
2023-05-10 13:51 ` sending audit logs only to audit.log via rsyslog Steve Grubb
2023-05-10 15:51   ` kathy lyons
2023-05-10 16:11     ` Steve Grubb

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=CAN-5jM-V+J5aZTnu86NzgKw3LGSZ76LyTusrF-MF+V_LjV3u7A@mail.gmail.com \
    --to=kathy.lyons@zayo.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 read-only IMAP folder(s) and NNTP newsgroup(s).