Syslog + Legato logread

#1

Hello

I am activating SYSLOGD in order to manage my application logs, it has the advantages of rolling multiple log files etc…

I would like the Legato logs to be logged into SYSLOG, how can this be achieved?

if there is no “built in” method I would like to “pipe” the legato log file to syslogd, where is this file located?

thank you

#2

Hi,

If I understand it correctly, I think legato logs are stored in memory. You can only access them using the logread command.

A way to get them and pipe them into a file or a program, without having to manually start the command, would be to add a bash script into the /etc/init.d directory with something like :

logread -f | ... &

Feel free to correct me if I am wrong or if I misunderstood your question :slight_smile:

1 Like