Forum Discussion
Irule for session Creation and Close
Hi,
Can anyone help me to write an Irule to check the Creation and closing time for the session.
Thanks in advance.
Regards, Midhun P.K
6 Replies
- Lucas_Thompson_Historic F5 Account
From your post, it sounds like you'd like to generate a report about incoming APM session:
- Login timestamp
- Logout timestamp
- Calculate login/logout to get a session duration
- Username
The APM logs contain sufficient information to generate such a report. The report log lines have the session ID number as a key, so you have to basically create a map of all session IDs and Check /var/log/apm for the correct lines with timestamp for session start, end, and username. Check the log file when you create a login and logout, they're straightforward. APM also has a report function to perform this task, but the amount of data stored is rather small because the disk on BIG-IP itself is used, and the size is limited. We recommend using syslog to send the logs to another device.
- midhun_108442
Nimbostratus
Dear Lucas,
Thanks for your response, am not looking for incoming APM session report, i need the sessions start and end time for the client traffic accessing servers behind F5,
Eg: - Each time when a client access Servers behind F5 need the sessions Start and end time for the same.
Appreciate your support on this.
Regards, Midhun P.K
- midhun_108442
Nimbostratus
Dear Lucas,
Thanks for your response, am not looking for incoming APM session report, i need the sessions start and end time for the client traffic accessing servers behind F5,
Eg: - Each time when a client access Servers behind F5 need the sessions Start and end time for the same.
Appreciate your support on this.
Regards, Midhun P.K
- midhun_108442
Nimbostratus
Dear Lucas,
Thanks for your response, am not looking for incoming APM session report, i need the sessions start and end time for the client traffic accessing servers behind F5,
Eg: - Each time when a client access Servers behind F5 need the sessions Start and end time for the same.
Appreciate your support on this.
Regards, Midhun P.K
- Lucas_Thompson_Historic F5 Account
Saying "session", what do you mean exactly?
The communication from the users will usually be HTTP. It doesn't really have a session that you can get an "end time" from.
You can certainly log the beginning time for all communication using the ACCESS_ACL_ALLOWED event.
- Lucas_Thompson_Historic F5 Account
Saying "session", what do you mean exactly?
The communication from the users will usually be HTTP. It doesn't really have a session that you can get an "end time" from.
You can certainly log the beginning time for all communication using the ACCESS_ACL_ALLOWED event.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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