watchdog icon indicating copy to clipboard operation
watchdog copied to clipboard

Add username and hostname to logs

Open sukhman-sukh opened this issue 1 year ago • 0 comments

While configuring logging functionality of watchdog, make it more verbose for ssh, sudo and su to also keep record of ssh_host_username and server_hostname in the logs.

Right now, su.logs looks like :

*** Tue Oct 29 00:16:20 2024
*** Tue Oct 29 02:30:35 2024
*** Tue Oct 29 02:30:35 2024
*** Wed Nov  6 02:05:16 2024

Improve the format to include ssh_host_username(ex: sukhman) and server_hostname(ex: watchdog) in the logs

sukhman-sukh avatar Nov 10 '24 21:11 sukhman-sukh