Live Chat!

Syslog: Sending log from remote servers to syslog daemon

* * * *   1 votos

July 23rd, 2008 mysurface

syslog is a standard for logging service in Linux, it usually run as daemon like syslogd or rsyslogd. Syslog daemon will be forward and store logs in /var/log directory, you may configure it to store at separate location if you want. (we will look into it later). And there is a major file that store [...]

Posted in Admin, logger, nc, rsyslogd, syslogd, tail | Hits: 12028 | No Comments »

log personal message to /var/log/messages

* * * * * 1 votos

August 14th, 2006 mysurface

To log personal messages to /var/log/messages when you write script, you can use logger
simple example:
logger i am testing
And check the result with tail, it display last 10 line of messages by default
tail /var/log/messages
To put more info to log file, you can specified the timestamp with scriptname by this
logger -t `basename $0` i am still testing
basename [...]

Posted in Admin, backquote, logger, tail | Hits: 6001 | 2 Comments »