I'm working on a C project, with client/server syslog communication with a Rpi. I have been asked to use syslog ng and I'd like to access to timestamp.
From what I found here:
Where the timestamp comes from depends on the type of log data you’re sending through.
Plus :
If your data is forwarded by a syslog service, there is a timestamp embedded in the header that we can pull out and use.
So it's possible to pull out the timestamp. But how ?