kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* user rsyslog/syslog
@ 2016-02-24  7:36 Ran Shalit
  2016-02-24  7:54 ` Ruben Safir
  2016-02-24  8:17 ` Valdis.Kletnieks at vt.edu
  0 siblings, 2 replies; 5+ messages in thread
From: Ran Shalit @ 2016-02-24  7:36 UTC (permalink / raw)
  To: kernelnewbies

Hello,

I am trying to write to rsyslog from application.
With openlog(..., LOG_USER), it works fine and I find the log in
/var/log/user.log (it is defines in /etc/rsyslog.d/50-defaults.conf )
But we need to enable different applications to have each its own log file.
I tried to use LOG_LOCAL0 instead and configured it in
/etc/rsyslog.d/50-defaults.conf the same way as user:

local0.* action
{
  type="omfile"
 FILE="/var/log/local0.log"
 FileOwner="root"
 FileGroup="adm"

}

I then did
1. /etc/init.d/rsyslog stop
2. /etc/init.d/rsyslog start
I see no warnings or errors, and I started the application trying to
write to LOG_LOCAL0, But there is no new file created, no logs.

Is there any idea whatws wrong, or how I can achieve this multi user's logs ?

Thank you,
Ran

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-24 16:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-24  7:36 user rsyslog/syslog Ran Shalit
2016-02-24  7:54 ` Ruben Safir
2016-02-24  8:17 ` Valdis.Kletnieks at vt.edu
2016-02-24 12:20   ` Ran Shalit
2016-02-24 16:53     ` Valdis.Kletnieks at vt.edu

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).