How to forwrd tsm logs
Hi, I have to forward tsmlogs to the server, I have below configuration . My audit team needs hostname printed when they receive the logs on their end. I have below configuration
<Output tsmout> Module om_tcp Host 10.24.8.23 Port 30133 Exec $FQDN = hostname_fqdn();
<Input tsmlogs> Module im_file File "/scripts/tsm/log/tsm.log" #File "/scripts/tsm/log/" + $FQDN + "-" + "tsm.log"
Exec $Hostname = hostname_fqdn();
<Route tsmroute> Path tsmlogs => tsmout </Route>
How do I add hostname when they get forwarded.
You can simply call the hostname function to retrieve the hostname of the agent host thus.
Exec $Hostname = hostname();