Thanks for sir,

Can you guid me which template can fullfil my need and how can i make it
default. I use the below templates.

$template tname,"%msg%"

$template linuxbox,"<%pri%>%timestamp% 172.20.16.15 %syslogtag%%msg%"
   # Ii sender machine.


*.*        @@172.20.16.5:514;tname

On Thu, Sep 17, 2015 at 11:50 AM, Rainer Gerhards <[email protected]>
wrote:

> You can define a new template and set this as default template. Other
> than that, your only option is to modify the source.
>
> Rainer
>
> 2015-09-17 8:44 GMT+02:00 Muhammad Asif <[email protected]>:
> > Dear Guys,
> >
> > My rsyslog send logs to remote server but its send hostname instead of IP
> > address. How can I enforce rsyslog to use IP address in logs. I can not
> use
> > any template. I want its default behavior to use IP address.
> >
> > Sep 17 11:37:53 pms sshd[8834]: Failed password for aserg from
> 172.20.16.51
> > port 62217 ssh2
> >
> >
> > Regards
> >
> > Asif
> > _______________________________________________
> > 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.

Reply via email to