Forum Discussion
Log user activity
- Sep 13, 2016
By default most of this should be logged already, session established messages, usernames, tunnel start, tunnel end.
Look at the syslog output or the file /var/log/apm while you connect a test user and see if the information you're after is there. Each log message will have a session ID used for correlation.
By default most of this should be logged already, session established messages, usernames, tunnel start, tunnel end.
Look at the syslog output or the file /var/log/apm while you connect a test user and see if the information you're after is there. Each log message will have a session ID used for correlation.
- RyanDM2_175490Sep 14, 2016Nimbostratus
Thanks. I assume that the if I am sending logging to a SIEM, that it should be able to parse out session length for users.
- Lucas_Thompson_Sep 14, 2016Historic F5 Account
Temporally, yes. That's just a matter of subtracting the timestamps.
Alternatively you could use the irule ACCESS_SESSION_COMPLETED event that fires when a session is destroyed, and subtract "session.user.starttime" from the current unix epoch time, then convert that to a human-readable value and log the result.
Helpfully APM will also log the bytes in/out for that user session.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com