Forum Discussion
Milan_61890
Nimbostratus
Jun 24, 2014divert a prefix-specific log message to another remote log server
Hello,
in a LTM 11.4.1 I have the following problem:
LTM is configured to send all log messages to a remote syslog server (actually two - A and B).
I have a bash script running which logs to /var/log...
Kevin_Stewart
Employee
Jun 24, 2014Here's what I might do:
-
Create a syslog configuration for this remote listener. For this example I chose to re-use an existing but unused facility (uucp), but you could probably do something more elaborate:
tmsh modify sys syslog include "destination remote_server {udp(10.70.0.99 port (514));};filter f_remote {facility(uucp);};log {source(local);filter(f_remote);destination(remote_server);};"
-
In you Bash script use something like the following:
logger -p uucp.info -t "TEST" "Hello World"
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