Forum Discussion
Jason_46956
Dec 23, 2010Nimbostratus
Trying to create audit logs with session variable from APM
Am trying to sort out logging for auditing purposes and have the following problem. Hoping somebody here might be able to provide some guidance.
Want to log the username (to start with) of...
Jason_46956
Jan 04, 2011Nimbostratus
Aaron,
I did actually log a case with F5 and they gave me some hints to fix my rule. The problem was with the order I trying to collect the data and the order that the events trigger.
The updated rule (which does what I need so far) is:
when CLIENT_ACCEPTED {
set userip [IP::client_addr]
set username "unknown"
set sessionid "unknown"
}
when ACCESS_ACL_ALLOWED {
set username [ACCESS::session data get "session.logon.last.username"]
set sessionid [ACCESS::session data get "session.user.sessionid"]
log local7. "$userip $username $sessionid [HTTP::uri]"
}
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects