Skip to content

Add username and hostname to logs #24

@sukhman-sukh

Description

@sukhman-sukh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions