bc81987
Aug 09, 2024Nimbostratus
CLI Command for specific machine "Session Deleted due to user inactivity"
Hello,
I have this command that I use to search for a specific machine in the apm logs:
zgrep -i "Username 'MACHINE_NAME_GOES_HERE'" /var/log/apm* |wc -l
Then I have this one to search for the line “Session deleted due to user inactivity”. It produces a number from ALL machines that encountered this message:
zgrep -i "Session deleted due to user inactivity." /var/log/apm* | wc -l
I'm wondering if there is a command or another method to look up how many times a specific machine encountered a session deletion due to user inactivity?