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/ltm by means of the “logger” command. How can I send these (script logging) messages to a different remote syslog server, say C? Can I have them log to A, B, and C? I will appreciate your help! Thanks, Milan
Here’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"