# F5 APM irule to log the VPN session parameters

**URL:** <https://community.f5.com/t/f5-apm-irule-to-log-the-vpn-session-parameters/76947>\
**Category:** Technical Forums\
**Tags:** application-delivery\
**Created:** [March 4, 2026, 9:46pm UTC](https://community.f5.com/t/f5-apm-irule-to-log-the-vpn-session-parameters/76947 "2026-03-04T21:46:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![REddy](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@REddy](https://community.f5.com/u/REddy)\
**Post date:** [March 4, 2026, 9:46pm UTC](https://community.f5.com/t/f5-apm-irule-to-log-the-vpn-session-parameters/76947/1 "2026-03-04T21:46:37Z")

</div>

Hi Everyone,

I would like to write an irule to log the user session parameters at different phases

1. username/publicIP/leaseIP/bigip\_edgeclient\_version/client OS/hostname when the user attempts to connect.
2. client side checks results (AV and file check), authentication results (RADIUS) and end policy result.
3. For some reason if the VPN gets disconnected, need to log the reason why the client got disconnected

I would like leverage HSL for the logging on to syslog.

It will be really great if anyone can help me with this.

Thanks,

Reddy

---

<div class="post-metadata">

**Author:** ![Injeyan\_Kostas](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/injeyan_kostas/32/263_2.png) [@Injeyan\_Kostas](https://community.f5.com/u/Injeyan_Kostas)\
**Post date:** [March 4, 2026, 10:01pm UTC](https://community.f5.com/t/f5-apm-irule-to-log-the-vpn-session-parameters/76947/2 "2026-03-04T22:01:49Z")

</div>

Hello @REddy

Why don’t you create a log profile to send APM logs to syslog?

APM logs already contain what you ask for.
