Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to setup a central log-server. The log-server is running with debian 6.0.6 and the audit daemon is installed in version 1.7.13-1.

The Clients are running with Red Hat 5.5 and they connect to the log-server via audispd. The connection works fine and i get all messages from each node.

My questions is: is it possible that the auditd daemon from the log server write the messages from each node in a separate file?

I try to transfer the messages via the syslog daemon, that works but i can not use tools like ausearch to analyze these log-files.

share|improve this question

You can easily do it with rsyslog like that

$template DynFile,"/var/log/%HOSTNAME%/%programname%.log"

share|improve this answer
I try this solution and works fine but i can not use the tools like ausearch for these files. – johan Oct 26 '12 at 10:54
why ? because of its format ? you can change it. check the templates in rsyslog – Nikolaidis Fotis Oct 26 '12 at 12:07
these are my templates in rsyslog.conf $template auditd, "/var/logClients/%HOSTNAME%-%FROMHOST-IP%/audit.log" $template myFor,"%msg\n" Any idea? – johan Oct 26 '12 at 12:55
maybe if you remove \n ?. Also I guess that you know that "myFor" you must use it as " * /var/log/auditd;myFor "; – Nikolaidis Fotis Oct 26 '12 at 14:09
no, you need this that every message got in a new line. Like in the audit.log – johan Oct 26 '12 at 14:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.