adding nxlog version to syslog


#1 aleksandrc

hi everyone

I've been searching this forum and the web, but can't find if there is a way to make nxlog include its version in the syslogs it forwards out

Thanks!

#2 Zhengshi Nxlog ✓
#1 aleksandrc
hi everyone I've been searching this forum and the web, but can't find if there is a way to make nxlog include its version in the syslogs it forwards out Thanks!

I don't know where you are wanting to store the value, but you could add some config to parse the syslog and then modify one of the fields like $SourceName or $Message, for instance.

<Exec>  
    parse_syslog();  
    $Message = "NXLog-CE 2.10.2102; " + $Message;  
    to_syslog_ietf();  
</Exec>