In order to enable syslog on F5, the following steps need to be completed:
- Log in to tmsh by entering the following command:tmsh
- To log to the remote syslog server using the TCP protocol, use the following command syntax: modify /sys syslog include “destination remote_server {tcp(\”<remote syslog server IP>\” port (514));};filter f_alllogs {level (debug…emerg);};log {source(local);filter(f_alllogs);destination(remote_server);};”For example, to log to the remote syslog server 172.28.68.42, enter the following command:
modify /sys syslog include “destination remote_server {tcp(\”172.28.68.42\” port (514));};filter f_alllogs {level (debug…emerg);};log {source(local);filter(f_alllogs);destination(remote_server);};”
- To save the configuration, enter the following command:save /sys config
- For BIG-IP systems in a high availability (HA) configuration, perform a ConfigSync to synchronize the changes to the other devices in the device group.
Leave A Comment?