Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to identify syslog message senders?

I am writing a small syslog server.

Is it possible to identify specifically the sender of a syslog message when I receive it?

I do not want to rely on the ip address since it can change.

I could write a syslog client which will send the MAC address as well in the syslog message. However, this solution is very limited as it would work with other manufacturer's devices.

How can I handle this ?

like image 473
Xsmael Avatar asked Dec 08 '25 22:12

Xsmael


1 Answers

Yes, RFC3164 mentions that logs should have hostname in the logs. Make sure you have correct hostname set and also updated /etc/hosts with the same hostname. Logging will pick up this hostname and add it to the logs.

like image 124
Milind Deore Avatar answered Dec 10 '25 16:12

Milind Deore