Score:0

How writing a syslog in file without writing them in /var/log/messages

in flag

I would like to write logs from network switches in a special file. Here is my code:

cat /etc/rsyslog.d/test.conf
$template syslog,"/var/log/clients/%fromhost%.log"
*.* ?syslog

It work ! But these logs are also written in the file /var/log/messages. How can I do to avoid this duplication?

More precision : I use redhat 7 ^^

Thx for your help :D

fo flag
Duplicate of https://stackoverflow.com/q/70200440/7552
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.