问题原文
原帖链接 · ThunderJack · CC BY-SA 3.0
Trying to forward only my auditd events by syslog, but I don't know which facility to use. I don't want to send everything to my syslog server as it would create redundancy in logging. I've set the audispd syslog plugin to active and from what I understand that should make auditd use syslog for logging the events. Now all I have to do is set the correct facility for auditd's events to forward to my logging server.
Please let me know if I'm mistaken on how this should be done. *I'm trying this on a box CentOS 7
已采纳解答
原帖链接 · Aaron · CC BY-SA 3.0
Auditd to syslog plugin facility settings
The Audisp plugin will send auditd data to syslog by default to the user facility. You can change this however.
cat /etc/audisp/plugins.d/syslog.conf
# This file controls the configuration of the syslog plugin.
# It simply takes events and writes them to syslog. The
# arguments provided can be the default priority that you
# want the events written with. And optionally, you can give
# a second argument indicating the facility that you want events
# logged to. Valid options are LOG_LOCAL0 through 7, LOG_AUTH,
# LOG_AUTHPRIV, LOG_DAEMON, LOG_SYSLOG, and LOG_USER.
active = yes
direction = out
path = builtin_syslog
type = builtin
args = LOG_INFO
format = string
The key there being Valid options are LOG_LOCAL0 through 7 so you can adjust this to your needs. On my system, they are the above default settings and I get auditd messages in the user facility logs.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
