# hsl logging apm

**URL:** <https://community.f5.com/t/hsl-logging-apm/61232>\
**Category:** Technical Forums\
**Tags:** super-netops, irules, big-ip-access-policy-manager-apm, security\
**Created:** [March 24, 2020, 3:52pm UTC](https://community.f5.com/t/hsl-logging-apm/61232 "2020-03-24T15:52:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dor](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@Dor](https://community.f5.com/u/Dor)\
**Post date:** [March 24, 2020, 3:52pm UTC](https://community.f5.com/t/hsl-logging-apm/61232/1 "2020-03-24T15:52:00Z")

</div>

hey,

i have configured this iRule to send syslog message to a remote server with the username and ip that a user gets once starts network access.

i see the log written on the ltm log file however i see no syslog traffic leaving the F5

```tcl
when CLIENT_ACCEPTED {
    ACCESS::restrict_irule_events disable
    set hsl [HSL::open -proto UDP -pool PA-IL-SyslogUID]
}

when HTTP_REQUEST {
    if { [HTTP::uri] starts_with "/isession?sess=" } {
        after 5000 { log local0. "VPN started for [ACCESS::session data get session.logon.last.username] from IP [IP::client_addr] assigned client IP [ACCESS::session data get session.assigned.clientip]"}
        HSL::send $hsl "Network Access username:[ACCESS::session data get session.logon.last.username] client-ip:[IP::client_addr] vpn-ip:[ACCESS::session data get session.assigned.clientip]"
    }
}

```
