For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

bc81987's avatar
bc81987
Icon for Nimbostratus rankNimbostratus
Aug 09, 2024

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?

1 Reply

  • I don't believe you can do a line count for the output from your zgrep but honestly this is probably a job better suited from a syslog server which will most likely allow you to run a report for time frames, unique strings, unique IPs, and so on.