Identifying Facility or local

Tags:

#1 zamarac

Hi Team, trying to capture some log files, and get them to the right facility or local, currently I have this

<Input messages> Module im_file File "D:\dhcp\logs\*.log" </Input>

Which does work but I need to get them to facility 21 and local5, any idea how to format my entry so this works?

Thanks,

#2 b0ti Nxlog ✓
#1 zamarac
Hi Team, trying to capture some log files, and get them to the right facility or local, currently I have this <Input messages> Module im_file File "D:\dhcp\logs\*.log" </Input> Which does work but I need to get them to facility 21 and local5, any idea how to format my entry so this works? Thanks,

The following should do:

Exec $SyslogFacilityValue = 21; to_syslog_bsd();