Hi, I have syslog-ng running. I'd like to have a /var/log/reboot file with times of reboots of the server. How would I do that? Thanks, Niels
* On 03.04. Niels (zorglub_olsen@hotmail.com) muttered:
I have syslog-ng running. I'd like to have a /var/log/reboot file with times of reboots of the server. How would I do that?
What about filtering FACILITY kernel for something like 'Linux version x.y.z'? Regards Til
Til Schubbe wrote:
What about filtering FACILITY kernel for something like 'Linux version x.y.z'?
Sounds good, thanks! I'm quite new to syslog-ng, but I'll try that. //Niels
It seems like this might be easier to complete with normal start up scripts...like maybe tag this onto the end of rc.local, or some other start up script. echo -n "System startup at:" >> /var/log/reboot date >> /var/log/reboot or something like that. Mike On Sun, 3 Apr 2005, Niels wrote:
Hi,
I have syslog-ng running. I'd like to have a /var/log/reboot file with times of reboots of the server. How would I do that?
Thanks, Niels
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
Jim wrote:
It seems like this might be easier to complete with normal start up scripts...like maybe tag this onto the end of rc.local, or some other start up script.
echo -n "System startup at:" >> /var/log/reboot date >> /var/log/reboot
or something like that.
Even easier! Thanks! //Niels
participants (3)
-
Jim
-
Niels
-
Til Schubbe