How to Configure Remote Syslog Logging

From RidgeRun Developer Wiki
Revision as of 22:37, 2 September 2010 by Jhidalgo (talk | contribs) (Created page with '== General Information == '''syslogd''' is the Linux system logging utility that take care of filling up your files in /var/log when it is asked to. On a standard system, loggi...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

General Information

syslogd is the Linux system logging utility that take care of filling up your files in /var/log when it is asked to.

On a standard system, logging is only done on the local drive. But syslog can be configured to receive logging from a remote client, or to send logging to a remote syslog server.

This How to gives the basic procedure need it for configuring a remote syslog server (in your PC) and client (in your board with our SDK filesystem structure).

Configuring BusyBox for setting up the syslogd server

The changes on this side are minimal. Basically you have to tell syslogd to listen for remote messages. To enable this you have to go and edit the following file in your host machine:

host$ sudo <Prefer text editor>/etc/default/syslogd

Make sure in this file SYSLOGD is set to:

SYSLOGD="-r"


Save the file and restart syslogd by doing:

host$ sudo /etc/init.d/syslogd restart 

Configuring BusyBox for setting up the syslogd remote using our SDK FileSystem structure in the board

Generally we have an script in our file system that initializes syslogd when the board boot up the kernel customized by us.

For setting up the syslogd remote edit this file in the host side:

host$  <Prefer text editor> $(DEVDIR)/fs/overlay/etc/init.d/ syslogd 

Add the following line:

/sbin/syslogd -R <serverip>:<port using by UDP>  -L (this save the messages in the server and the client. Optional) -O <PATH where you want to send the log messages>