Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add username and hostname to logs #24

Open
sukhman-sukh opened this issue Nov 10, 2024 · 0 comments
Open

Add username and hostname to logs #24

sukhman-sukh opened this issue Nov 10, 2024 · 0 comments

Comments

@sukhman-sukh
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant