PDA

View Full Version : Append host name to log file using syslog-ng


coolatt
January 15th, 2009, 09:37
hi.

i want to collect logs from different hosts and write it to a single log file on the syslog-ng server

i want it in the format

Host1 ........<rest of log line>......
Host1 ........<rest of log line>......
Host2 ........<rest of log line>......
Host3 ........<rest of log line>......
Host1 ........<rest of log line>......

any idea? plz help.