Re: [gentoo-user] Daemons log on Gentoo
2006/6/4, Jeremy Olexa <[EMAIL PROTECTED]>: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leandro Melo de Sales wrote: > Hi Mark.. I made the proper changes and still not working.. :( > > # vi /etc/syslog-ng/syslog-ng.conf > options { >chain_hostnames(off); >sync(0); >perm(0640); >dir_perm(0750); >create_dirs(yes); >stats(43200); > } > > source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); }; > source kernsrc { pipe("/proc/kmsg"); }; > destination messages { file("/var/log/messages"); }; > destination daemon { file("/var/log/daemon.log"); }; > filter f_daemon { facility(daemon); }; > > destination console_all { file("/dev/tty12"); }; > > log { source(src); filter(f_daemon); destination(daemon); }; > log { source(src); destination(messages); }; > log { source(src); destination(console_all); }; > > > What is wrong? I assume that you restarted the service? ;-) (PS. The standard convention on mailing lists is to post your reply on the bottom of the message.) - -- Jeremy Olexa ([EMAIL PROTECTED]) Office: EE/CS 1-201 CS/IT Systems Staff University of Minnesota -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEg0t2FN7pD9kMi/URAl7ZAJ0edMyJBPMMmnA9l8sL9jt1QOw+RACfUXzi IQmpfaaqX27LlFKwfqoqDZ8= =SV4D -END PGP SIGNATURE- -- gentoo-user@gentoo.org mailing list OK Jeremy, sorry... Now I'm posting on the bottom of the message! ;) Yes, I restart syslog-ng... any clue? -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Daemons log on Gentoo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leandro Melo de Sales wrote: > Hi Mark.. I made the proper changes and still not working.. :( > > # vi /etc/syslog-ng/syslog-ng.conf > options { >chain_hostnames(off); >sync(0); >perm(0640); >dir_perm(0750); >create_dirs(yes); >stats(43200); > } > > source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); }; > source kernsrc { pipe("/proc/kmsg"); }; > destination messages { file("/var/log/messages"); }; > destination daemon { file("/var/log/daemon.log"); }; > filter f_daemon { facility(daemon); }; > > destination console_all { file("/dev/tty12"); }; > > log { source(src); filter(f_daemon); destination(daemon); }; > log { source(src); destination(messages); }; > log { source(src); destination(console_all); }; > > > What is wrong? I assume that you restarted the service? ;-) (PS. The standard convention on mailing lists is to post your reply on the bottom of the message.) - -- Jeremy Olexa ([EMAIL PROTECTED]) Office: EE/CS 1-201 CS/IT Systems Staff University of Minnesota -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEg0t2FN7pD9kMi/URAl7ZAJ0edMyJBPMMmnA9l8sL9jt1QOw+RACfUXzi IQmpfaaqX27LlFKwfqoqDZ8= =SV4D -END PGP SIGNATURE- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Daemons log on Gentoo
Hi Mark.. I made the proper changes and still not working.. :( # vi /etc/syslog-ng/syslog-ng.conf options { chain_hostnames(off); sync(0); perm(0640); dir_perm(0750); create_dirs(yes); stats(43200); } source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); }; source kernsrc { pipe("/proc/kmsg"); }; destination messages { file("/var/log/messages"); }; destination daemon { file("/var/log/daemon.log"); }; filter f_daemon { facility(daemon); }; destination console_all { file("/dev/tty12"); }; log { source(src); filter(f_daemon); destination(daemon); }; log { source(src); destination(messages); }; log { source(src); destination(console_all); }; What is wrong? 2006/6/4, Mick <[EMAIL PROTECTED]>: On 03/06/06, Leandro Melo de Sales <[EMAIL PROTECTED]> wrote: > I'm using syslog-ng > > 2006/6/3, Daniel da Veiga <[EMAIL PROTECTED]>: > > On 6/3/06, Leandro Melo de Sales <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > >I can't find /var/log/daemon... Every time a service is stopped or I have this in my /var/log/ directory: == -rw-r- 1 rootroot 116223 Jun 3 18:08 daemon.log == In addition, check the extract from my /etc/syslog-ng/syslog-ng.conf (which created the daemon.log file in the first place): == options { chain_hostnames(off); sync(0); perm(0640); dir_perm(0750); create_dirs(yes); [snip . . . ] stats(43200); }; source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); }; source kernsrc { pipe("/proc/kmsg"); }; [snip . . . ] destination daemon { file("/var/log/daemon.log"); }; [snip . . . ] #create filters filter f_daemon { facility(daemon); }; [snip . . . ] #connect filter and destination log { source(src); filter(f_daemon); destination(daemon); }; == Adding this in /etc/logrotate.conf ensures that the /var/log/daemon.log file size does not get out of hand: == # when /var/log/daemon.log gets big /var/log/daemon.log { rotate 1 weekly size=1M } == Of course the latter is only relevant if you are using logrotate. HTH. -- Regards, Mick -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Daemons log on Gentoo
On 03/06/06, Leandro Melo de Sales <[EMAIL PROTECTED]> wrote: I'm using syslog-ng 2006/6/3, Daniel da Veiga <[EMAIL PROTECTED]>: > On 6/3/06, Leandro Melo de Sales <[EMAIL PROTECTED]> wrote: > > Hi, > > > >I can't find /var/log/daemon... Every time a service is stopped or I have this in my /var/log/ directory: == -rw-r- 1 rootroot 116223 Jun 3 18:08 daemon.log == In addition, check the extract from my /etc/syslog-ng/syslog-ng.conf (which created the daemon.log file in the first place): == options { chain_hostnames(off); sync(0); perm(0640); dir_perm(0750); create_dirs(yes); [snip . . . ] stats(43200); }; source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); }; source kernsrc { pipe("/proc/kmsg"); }; [snip . . . ] destination daemon { file("/var/log/daemon.log"); }; [snip . . . ] #create filters filter f_daemon { facility(daemon); }; [snip . . . ] #connect filter and destination log { source(src); filter(f_daemon); destination(daemon); }; == Adding this in /etc/logrotate.conf ensures that the /var/log/daemon.log file size does not get out of hand: == # when /var/log/daemon.log gets big /var/log/daemon.log { rotate 1 weekly size=1M } == Of course the latter is only relevant if you are using logrotate. HTH. -- Regards, Mick -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Daemons log on Gentoo
I'm using syslog-ng 2006/6/3, Daniel da Veiga <[EMAIL PROTECTED]>: On 6/3/06, Leandro Melo de Sales <[EMAIL PROTECTED]> wrote: > Hi, > >I can't find /var/log/daemon... Every time a service is stopped or Well, I don't know what logger uses this dir, but anyway, you should be looking for logs, not for a specific dir. > started I want to log it on /dev/log/daemon. In addition, I can't see > it on /var/log/message. I tried to stop apache for instance and the What is your logger? > system didn't log this event in /var/log/message, why? Hmmm, depends on your logger, syslog-ng does stuff like that, check its man page... -- Daniel da Veiga Computer Operator - RS - Brazil -BEGIN GEEK CODE BLOCK- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ --END GEEK CODE BLOCK-- -- gentoo-user@gentoo.org mailing list -- Leandro Melo de Sales. Computer Science Student Laboratório de Sistemas Distribuídos - www.lsd.ufcg.edu.br Laboratório de Sistemas Embarcados e Computação Pervasiva - www.embeddedacademy.org Universidade Federal de Campina Grande - UFCG Campina Grande - PB - Brasil "Sometimes people fall in love, but a little bit of them really love or find a truth love. Or sometimes they find it but for some reason they let love pass without live it intensely. This is the free-well." -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Daemons log on Gentoo
On 6/3/06, Leandro Melo de Sales <[EMAIL PROTECTED]> wrote: Hi, I can't find /var/log/daemon... Every time a service is stopped or Well, I don't know what logger uses this dir, but anyway, you should be looking for logs, not for a specific dir. started I want to log it on /dev/log/daemon. In addition, I can't see it on /var/log/message. I tried to stop apache for instance and the What is your logger? system didn't log this event in /var/log/message, why? Hmmm, depends on your logger, syslog-ng does stuff like that, check its man page... -- Daniel da Veiga Computer Operator - RS - Brazil -BEGIN GEEK CODE BLOCK- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ --END GEEK CODE BLOCK-- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Daemons log on Gentoo
Leandro Melo de Sales wrote: > The filesystem doesn't have this directory... any clue? > > 2006/6/3, Teresa and Dale <[EMAIL PROTECTED]>: > >> >> Look in /var/log/everything/ and see if anything is in there. One of >> the logger puts it in there. >> >> Dale >> :-) >> -- >> gentoo-user@gentoo.org mailing list >> >> > > Not after I went and looked at mine. I use syslog-ng myself and I thought it logged all that. I'm sure it used to but it may have been changed or it may be a option you have to enable now. You may want to look at metalog but I didn't see where it logged that either, unless it had a error of some kind anyway. I have used both before. Dale :-) :-) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Daemons log on Gentoo
The filesystem doesn't have this directory... any clue? 2006/6/3, Teresa and Dale <[EMAIL PROTECTED]>: Leandro Melo de Sales wrote: > Hi, > > I can't find /var/log/daemon... Every time a service is stopped or > started I want to log it on /dev/log/daemon. In addition, I can't see > it on /var/log/message. I tried to stop apache for instance and the > system didn't log this event in /var/log/message, why? > > Leandro. Look in /var/log/everything/ and see if anything is in there. One of the logger puts it in there. Dale :-) -- gentoo-user@gentoo.org mailing list -- Leandro Melo de Sales. Computer Science Student Laboratório de Sistemas Distribuídos - www.lsd.ufcg.edu.br Laboratório de Sistemas Embarcados e Computação Pervasiva - www.embeddedacademy.org Universidade Federal de Campina Grande - UFCG Campina Grande - PB - Brasil "Sometimes people fall in love, but a little bit of them really love or find a truth love. Or sometimes they find it but for some reason they let love pass without live it intensely. This is the free-well." -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Daemons log on Gentoo
Leandro Melo de Sales wrote: > Hi, > > I can't find /var/log/daemon... Every time a service is stopped or > started I want to log it on /dev/log/daemon. In addition, I can't see > it on /var/log/message. I tried to stop apache for instance and the > system didn't log this event in /var/log/message, why? > > Leandro. Look in /var/log/everything/ and see if anything is in there. One of the logger puts it in there. Dale :-) -- gentoo-user@gentoo.org mailing list
[gentoo-user] Daemons log on Gentoo
Hi, I can't find /var/log/daemon... Every time a service is stopped or started I want to log it on /dev/log/daemon. In addition, I can't see it on /var/log/message. I tried to stop apache for instance and the system didn't log this event in /var/log/message, why? Leandro. -- gentoo-user@gentoo.org mailing list