I need to identify the IP addresses that users are accessing my Confluence server from so that I can correctly filter them out in Apache.
JIRA already has an excellent log file which I can use for this (atlassian-jira-security.log) as detailed in
https://confluence.atlassian.com/adminjiraserver073/logging-and-profiling-861253813.html
- Security-related information (e.g. login, logout, session creation/destruction, security denials) is written to
atlassian-jira-security.log.
e.g.
2018-07-20 09:36:11,161 http-nio-8080-exec-149 url:/rest/dev-status/1.0/issue/summary joebloggs 576x346142x1 - 10.12.22.124,221.250.140.12 /rest/dev-status/1.0/issue/summary The user 'joebloggs' has PASSED authentication.
However this log file doesn't exist for Confluence and I can't seem to find a way to generate this information. Ideally I'd like a log entry for when a user passes authentication which includes the IP address they accessed Confluence from.
Is there a way to create this information in my logs on Confluence?