Forum Discussion

Roflcopter's avatar
Roflcopter
Icon for Nimbostratus rankNimbostratus
May 28, 2016

Generate Syslog message when users login

We have a requirement that when a users logs in remotely a syslog message is generated containing the following -

 

Username: Device: IP: Country of origin:

 

Has anyone has any experience doing this?

 

5 Replies

    • Roflcopter's avatar
      Roflcopter
      Icon for Nimbostratus rankNimbostratus
      This is via apm. We have users logging in using AD credentials.
    • Roflcopter's avatar
      Roflcopter
      Icon for Nimbostratus rankNimbostratus
      This is via apm. We have users logging in using AD credentials.
  • Hi,

    In the VPE, you can add a logging block (General Purpose) at the end of the policy with the following settings. This will be appended to the apm log :

    Log Message : Username:%{session.logon.last.username} Device:%{session.client.platform} IP:%{session.user.clientip} Country of origin: %{session.user.ipgeolocation.country_code}

    You also have those information by default in the apm log :

    /Common/sp_ap:Common:e627e57f: Received User-Agent header: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36.
    /Common/sp_ap:Common:e627e57f: New session from client IP 192.168.20.1 (ST=/CC=/C=) at VIP 192.168.20.222 Listener /Common/vs_test (Reputation=Unknown)