Read up on templates, the default templates are also specified on that page. Replace the hostname param by the name you want. That's it ;)
Rainer > -----Original Message----- > From: [email protected] [mailto:rsyslog- > [email protected]] On Behalf Of Sebastian Weber > Sent: Tuesday, March 20, 2012 3:54 PM > To: '[email protected]' > Subject: [rsyslog] Modify Hostname in log > > Hi All, > > we want to add an information tot he log message to se which rsyslog- > server has forward this message. Our scenario are based on 3 hosts (A, > B and C) A forward message to B and B forward local and remote messages > to C. > Is it posible to modify the hostname of the receiving log on host B so > that on host C it looks like to gett all remote logs from host B > Example > Host A to Host B (logfile on Host B) > 12:00 HostName_A foobar message from Host A > ... > > Receiving Log on Host C: > 12:00 HostName_B foobar message from Host A > > > Thanks a lot > > Sebastian > -- > Freundliche Gr??e / Best Regards > > Sebastian Weber > > ----------------------------------------------------------------------- > ----------------------- > > Sebastian Weber, M.Sc. > Kommunikationssysteme / Communication Systems > Fakult?t f?r Ingenieurwissenschaften / School of Engineering > Hochschule f?r Technik und Wirtschaft des Saarlandes (HTW) / > University of Applied Sciences > > Standort / Location: > HTW Hochschul-Technologie-Zentrum (HTZ) > Campus IT-Park (CIP) > Altenkesseler Strasse 17/D2 > 66115 Saarbruecken, Germany > > Phone: +49 681 5867-663 > Mobile: n.a. > Fax: +49 681 5867-671 > E-Mail: [email protected] > URL: http://www.htw-saarland.de > > ----------------------------------------------------------------------- > ----------------------- > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com/professional-services/ _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/

