1

Does anyone know if it is possible to log in WSO2's audit.log the user's IP address? What's the format I have to configure in repository/conf/log4j2.properties? It works just fine in http_access*.log but I am unable to set it in audit.log

ycr
  • 12,828
  • 2
  • 25
  • 45
StefanG
  • 320
  • 1
  • 3
  • 10

1 Answers1

0

Try adding the below to the deployment.toml

[audit.log.contextual_param]
params = ["remote_address"]

Besides the remote_address you can also add user_agent as a parameter or both at the same time.

ycr
  • 12,828
  • 2
  • 25
  • 45