User requests

Successful user log in

PolicyCenter logs the following information automatically whenever a user successfully logs into PolicyCenter using the application login form:
  • Traceability ID
  • User number in database (user field)
  • User ID
  • User name
  • Session
  • CSRF token ('csrfToken' in message)
  • Address from which the user is accessing PolicyCenter ('from' in message)
  • Time of event (in milliseconds)

For the following example, the logger name is User and the marker is WebLogin.

If you configure log4j2 to report JSON messages, you see something similar to the following code in the JSON daily file log after user su logs into PolicyCenter successfully.

{"thread":"qtp106999035-14","level":"INFO","loggerName":"User","marker":{"name":"WebLogin"},
      "message":"User Login {user=\"su\", userId=\"3\", csrfToken=\"c08e62dd6f5218d3e28a854fc935bc3dbcd0fa8b\", 
      from=\"0:0:0:0:0:0:0:1\", session=\"node01vu81735k53oki0b72fqokrew1\"}","endOfBatch":false,
      "loggerFqcn":"org.apache.logging.slf4j.Log4jLogger",
      "instant":{"epochSecond":1559169504,"nanoOfSecond":820000000},
      "contextMap":{"session":"node01vu81735k53oki0b72fqokrew1",
      "traceabilityID":"a10e6a74-9f14-423a-b4df-4e7e5b5db061",
      "user":"3","userID":"su","userName":"Super User"},"threadId":14,"threadPriority":5}