Q. Jira, Confluence Server / Data Center において、それぞれの製品でユーザーがログインしたことをアプリケーションログで確認したいです。どのように設定・確認可能でしょうか。
A. Jira, Confluence でそれぞれで必要な設定が異なります。各製品では下記のような形で確認可能です。
・Jiraの場合
Jiraの場合には atlassian-jira-security.log 内の "The user 'admin' has PASSED authentication." のようなログでログインを確認可能です。
サンプルログ: atlassian-jira-security.log
ログイン成功時
2023-06-09 05:10:21,968+0000 http-nio-8080-exec-14 admin 310x2803x1 zokxj2 xxx.xxx.xxx.x /rest/gadget/1.0/login The user 'admin' has PASSED authentication.
ログイン失敗時
2023-06-09 05:11:11,664+0000 http-nio-8080-exec-17 anonymous 311x2831x1 1qvu69a xxx.xxx.xxx.x /login.jsp login : 'admin' tried to login but they do not have USE permission or weren't found. Deleting remember me cookie.
2023-06-09 05:11:11,681+0000 http-nio-8080-exec-17 anonymous 311x2831x1 1qvu69a xxx.xxx.xxx.x /login.jsp The user 'admin' has FAILED authentication. Failure count equals 1
・Confluenceの場合
Confluence ではデフォルトの設定では、ログイン時のログ出力はされません。現時点で下記の機能リクエストが起案されております。
CONFSERVER-60005 Ability to track the user login attempt
参考情報として、上記のチケットに記載されておりますが、Workaround として、下記のパッケージのログレベルを変更することで、ログ出力が可能です。もしよろしければお試しください。
com.atlassian.confluence.security.login.DefaultLoginManager
サンプルログ: atlassian-confluence-security.log
ログイン成功時
2023-06-09 05:02:06,850 DEBUG [http-nio-8090-exec-5] [confluence.security.login.DefaultLoginManager] onSuccessfulLoginAttempt Successful login attempt for user 'admin'
ログイン失敗時
2023-06-09 05:08:00,357 WARN [http-nio-8090-exec-9] [atlassian.seraph.auth.DefaultAuthenticator] login login : 'admin' tried to login but they do not have USE permission or weren't found. Deleting remember me cookie.
-- referer: http://localhost/login.action?logout=true | url: /dologin.action | traceId: 3f90d3875876030f
2023-06-09 05:08:00,369 DEBUG [http-nio-8090-exec-9] [confluence.security.login.DefaultLoginManager] recordLoginFailure
Failed login attempt for user 'admin':
Request URL: http://localhost/dologin.action
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0
Remote Address: xxx.xxx.xxx.x
※本記事は Jira Software(DC) v8.22, Confluence(DC) v7.19 にて検証を行っています。
Ryoji Takata
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
0 comments