Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How does the audit log api map to the UI audit log?

Boris Kacevich
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 14, 2019

Hello,

 

We are trying to build a monitoring system that will monitor user activity inside our organization in order to detect anomalous behaviors. 

I would like to understand how can I map the audit log API response to the UI audit log.

for example, what field would state the event type and which field would indicate the specific action made.

Is there a place I can see this information?

 

Thanks,

 

Boris Kacevich

1 answer

1 accepted

0 votes
Answer accepted
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 16, 2019

Hello Boris and welcome to the Community!

Building a monitoring system to review and record the audit logs sounds like an awesome idea. With this said, the relationship between the API JSON response and the UI and not a perfect match but they're very close, I will present an example which compares the UI to the JSON results:

For this example, I made a change within the Global settings changing the Connection Timeout from 1000 to 10001. The UI will report results as follows:

 

 image.png

The JSON response will be seen as:

{
"results":[
{
"author":{
"type":"user",
"displayName":"USER",
"username":"USERNAME",
"userKey":"00000"
},
"remoteAddress":"0:0:0:0:0:0:0:1",
"creationDate":1547651550771,
"summary":"Global settings changed",
"description":"",
"category":"Global Administration",
"sysAdmin":true,
"affectedObject":{
"name":"",
"objectType":""
},
"changedValues":[
{
"name":"Custom contact admin message",
"oldValue":"",
"newValue":"Please enter information about your request for the site administrators. If you are reporting an error please be sure you include information on what you were doing and the time the problem occurred."
},
{
"name":"Connection timeout",
"oldValue":"10000",
"newValue":"10001"
}
],
"associatedObjects":[

]
}
}

This should help to paint a picture of how the UI is matched to the JSON results from the API. The API will report much more detail than the UI has which will make a monitoring solution which uses the API much for viable.

You may find more about the audit records within the API at: GET /rest/api/audit. Along with the Confluence documentation for Audit Log.

If you need further information on API results for the audit records, please let us know.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events