I am reading through some syslog-ng documentation, and in the section about filter functions, it says that the program()
filter matches...
...messages by using a regular expression against the program name field of log messages.
The documentation also includes similar definitions for other filter functions.
How is the program name field set in a log message? Is there some documentation somewhere which summarises this for the various fields? I couldn't find it in the documentation I have ("The syslog-ng Administrator Guide").
The program name field is set by the application sending the log message. If you want to override this for some reason, you can use the program_override() option in the syslog-ng source definition. I am not sure which syslog-ng versions support this option, it is surely available in 3.0 and later.
HTH
Robert
From
man 3 syslog
:Program name is set inside code of the program using the system logging facility.