Thanks, this worked nicely indeed. :)
On Wed, May 28, 2014 at 4:52 PM, David Lang <[email protected]> wrote: > Assuming that there are no relays, just change your template to say > fromhost-ip instead of hostname > > If there are relays, you will need to make those relays add the ip and > then extract it on the server. There are lots of ways to do this (depending > on what version you are running) > > David Lang > > On Wed, 28 May 2014, Reinoud Koornstra wrote: > > Date: Wed, 28 May 2014 16:47:38 -0700 >> From: Reinoud Koornstra <[email protected]> >> Reply-To: rsyslog-users <[email protected]> >> To: rsyslog-users <[email protected]> >> Subject: [rsyslog] Logging to ip filename >> >> >> Dear All, >> >> I configured: >> >> $template PerHostLog,"/var/log/remote-hosts/%HOSTNAME%.log" >> if $fromhost-ip startswith '192.168.7.' then -?PerHostLog >> >> This works nice. >> But can i have the filename as %ip%.log ? >> I don't want hostname. >> Thanks, >> >> Reinoud. >> _______________________________________________ >> rsyslog mailing list >> http://lists.adiscon.net/mailman/listinfo/rsyslog >> http://www.rsyslog.com/professional-services/ >> What's up with rsyslog? Follow https://twitter.com/rgerhards >> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad >> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you >> DON'T LIKE THAT. >> >> _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com/professional-services/ > What's up with rsyslog? Follow https://twitter.com/rgerhards > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad > of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you > DON'T LIKE THAT. > _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

