Bring back the http session id in audit logs

XMLWordPrintable

    • 1
    • 2

      The new version of the Bitbucket Audit log was introduced with the 7.0 release.
      Even though the new version provides more verbose information comparing to the old format, one thing is missing there - HTTP session-id (i.e. @32AO0Cx899x57272x0).

      Example of the old version of AuthenticationFailureEvent:

      172.16.71.1,172.16.71.134 | AuthenticationFailureEvent | - | 1583330349152 | Username for "https | {"authentication-method":"basic","error":"Invalid username or password."} | @32AO0Cx899x57272x0 | -
      

      Example of the new version of AuthenticationFailureEvent:

      {"affectedObjects":[],"auditType":{"action":"User login failed","actionI18nKey":"bitbucket.service.user.audit.action.authenticationfailure","area":"SECURITY","category":"Authentication","categoryI18nKey":"bitbucket.service.audit.category.authentication","level":"BASE"},"author":{"id":"-2","name":"Anonymous","type":"user"},"changedValues":[],"extraAttributes":[{"name":"Error","nameI18nKey":"bitbucket.service.user.audit.attribute.authenticationfailure.error","value":"Invalid username or password."},{"name":"Authentication method","nameI18nKey":"bitbucket.service.user.audit.attribute.authentication.authmethod","value":"form"},{"name":"target","nameI18nKey":"bitbucket.audit.attribute.legacy.target","value":"ie"},{"name":"Load balancer/proxy IP address","nameI18nKey":"atlassian.audit.event.attribute.forwarder","value":"172.16.71.134"}],"method":"Browser","node":"6137e112-c7c1-4d54-a4e3-4b98cccee0fd","source":"172.16.71.1","system":"https://bitbucketdc","timestamp":{"epochSecond":1611659205,"nano":20000000},"version":"1.0"}

      Why HTTP session-id is important? It can be used to matching entries from the audit log to the entries of access, application, and profile logs. Also, it helps to troubleshoot on the side of the remote systems using the HAR file or the logs of the client.

              Assignee:
              Unassigned
              Reporter:
              Anton Shaleev (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: