Action Log
The Activity Log section is for monitoring and installing changes.
Now the history of actions is recorded by 6 components of the VK Cloud cloud:
- Nova is a controller of computing resources.
- Cinder - a component responsible for working with disks.
- Karbor - a component for data protection, provides backup.
- Neutron is a component that implements virtual networks in the cloud.
- Glance is a component that is responsible for storing and working with images.
- Octavia is a component that manages load balancers.
In your account, click on the username and select Activity Log. The page displays the history of user actions working with the project.
By default, the page displays user activity for the last month. If you are interested in a different period, specify a new time range and click Create another request. Then click Show Logs.
The generated report can be downloaded in xls
format. To do this, click Download report.
To get activity log entries using an API request:
- Get access token
{auth_token}
. - Find out
{project_id}
on the Project Settings → API Access page. - Run request:
curl -i -X GET "https://mcs.mail.ru/auditlogs/v1/{project_id}/logs?source={source}" -H "X-Auth-Token:{auth_token}"
where {source}
is the component name: nova
, cinder
, karbor
, neutron
, glance
, octavia
.
Request parameters | Values | Description |
---|---|---|
From | RFC3339 | The start of the time range. |
To | RFC3339 | End of time range. |
source | string | Event source (component). |
marker | string | The token for requesting the next page, previously returned by the API. TTL markers - 1 hour. |
limit | Integer | The number of records to return. The default is 1000. |
Response:
1{ 2 "logs": [ 3 { 4 "action":"create-floating-ip", 5 "event_id":"9840e233-6717-44d3-af7d-7a68837ee893", 6 "method":"POST", 7 "request_body":"{}", 8 "request_id":"req-6bee7f11-b233-430a-9c55-f476be373b23", 9 "response_body":"{}", 10 "source":"neutron", 11 "success":"yes", 12 "timestamp":"2021-07-16T13:13:20Z", 13 "uri":"/v2.0/floatingips", 14 "user_email":"example@mcs.mail.ru", 15 "user_id":"d06lc1dd59bc22c4bc15d1de98d28119" 16 }, 17 { 18 "action":"vm-action", 19 "event_id":"7259205b-7u4e-4078-9ffc-zf15d2bd1a8f", 20 "method":"POST", 21 "request_body":"{}", 22 "request_id":"req-8449b158-19bb-41b1-b0b4-e3522b9119f4", 23 "response_body":"{}", 24 "source":"new", 25 "success":"yes", 26 "timestamp":"2021-07-14T21:52:20Z", 27 "uri":"/v2.1/servers/912gd12d9gd912/action", 28 "user_email":"example@mcs.mail.ru", 29 "user_id":"d06lc1dd59bc22c4bc15d1de98d28119" 30 } 31 ] 32}