Forum Discussion
cabundo_13048
Jul 16, 2013Nimbostratus
Syslog Inquiry
Hello All,
We have a couple of LTM's sending out syslog message to a remote server on the network. The syslog server is seeing that some of the LTM's are getting message with the hostname...
nitass
Jul 28, 2013Employee
by default, syslog-ng sends message using "$ISODATE $HOST $MSGHDR$MSG\n" template. you can customize it as you want.
this may not be a good example anyway.
e.g.
[root@B6400-R69-S9:Active] config b version|grep -iA 1 version
BIG-IP Version 9.4.8 355.0
Final Edition
[root@B6400-R69-S9:Active] config b syslog include '"
> template t_custom {
> template(\"$ISODATE 172.28.69.9 $MSG\n\");
> template_escape(no);
> };
> destination d_loghost {
> udp(\"172.28.20.17\" port(514) template(t_custom));
> };
> log {
> source(local);
> destination(d_loghost);
> };
> "'
[root@B6400-R69-S9:Active] config b syslog list
syslog {
include "
template t_custom {
template(\"$ISODATE 172.28.69.9 $MSG\\n\");
template_escape(no);
};
destination d_loghost {
udp(\"172.28.20.17\" port(514) template(t_custom));
};
log {
source(local);
destination(d_loghost);
};
"
remote server none
}
remote syslog
2013-07-26T10:06:32-07:00 172.28.69.9 logger: [ssl_acc] 192.168.206.136 - admin [26/Jul/2013:10:06:32 -0700] "GET /tmui/Control/jspmap/tmui/overview/welcome/introduction.jsp HTTP/1.1" 200 57424
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects