Prerequisites
- Web console
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
- Make sure you are in a group that has the
adminorauditlogs.audit-event-viewerrole within your tenant. You can check this in the Administration → IAM section of the web console. - Identify the regions to search for the audit events you need.
Potential security incidents
If you suspect a security incident in your tenant, Audit Logs can help you track down the events that occurred at the time and investigate possible causes.Who made changes to resources, and when?
If you encounter a suspicious change in resources of a given type, review the events that involve resource changes:- Web console
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
- Enter
CREATE,UPDATEorDELETEin the Action field to see all resource changes. - Fill in the Resource type field to see the changes that concern a specific resource type.
DELETE in the Action field and computeinstance in the Resource type field to find out which Compute virtual machines were deleted.See the Subject column to find out who made the change.What happened at the time of the incident?
To gain more context when investigating an incident, create granular filters to review the events. To combine filters, use the following options:ANDlogical operator.- Comparison operators:
=(equals),!=(not equals),:(contains). - Regular expressions (for example,
regex(resource.name, '^.*prod.*$')to show resources withprodin their names).
example@nebius.com deleted virtual machines between April 1 and April 5:
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
Limit the number of entries you receive by using the In the command, specify:
--page-size parameter:--parent-id: Tenant ID.--start:2025-04-01T00:00:00Z.--end:2025-04-06T00:00:00Z.--filter: Events whereexample@nebius.comdeleted Compute virtual machines.--page-size:10.--region: Region where the events are stored.
next_page_token value from the response and run the same command again with an additional --page-token=<next_page_token> parameter to get the next batch.Unexpected spending
If you see a sudden increase in spending, Audit Logs can help you find out more about the resources that are used in your tenant.What happened with a specific resource?
A particular resource may cause more spending than you expected. Get the events that are associated with this resource:- Web console
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
Enter the resource ID in the Resource ID field.
Who created a new resource?
Unexpected spending may be caused by creating more resources than necessary. To investigate who created them, get the resource creation events:- Web console
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
Fill in the Resource type field and enter
CREATE in the Action field to see when resources of a specific type were created.For example, enter computeinstance in the Resource type field and CREATE in the Action field to see all events where a Compute virtual machine was created.See the Subject column to find out who made the change.