Skip to main content

activity_logs

Creates, updates, deletes, gets or lists a activity_logs resource.

Overview

Nameactivity_logs
TypeResource
Idazure.monitor.activity_logs

Fields

NameDatatypeDescription
idstringthe Id of this event as required by ARM for RBAC. It contains the EventDataID and a timestamp information.
descriptionstringthe description of the event.
authorizationobjectthe authorization used by the user who has performed the operation that led to this event. This captures the RBAC properties of the event. These usually include the 'action', 'role' and the 'scope'
callerstringthe email address of the user who has performed the operation, the UPN claim or SPN claim based on availability.
categoryobjectThe localizable string class.
claimsobjectkey value pairs to identify ARM permissions.
correlationIdstringthe correlation Id, usually a GUID in the string format. The correlation Id is shared among the events that belong to the same uber operation.
eventDataIdstringthe event data Id. This is a unique identifier for an event.
eventNameobjectThe localizable string class.
eventTimestampstringthe timestamp of when the event was generated by the Azure service processing the request corresponding the event. It in ISO 8601 format.
httpRequestobjectThe Http request info.
levelstringthe event level
operationIdstringIt is usually a GUID shared among the events corresponding to single operation. This value should not be confused with EventName.
operationNameobjectThe localizable string class.
propertiesobjectthe set of <Key, Value> pairs (usually a Dictionary<String, String>) that includes details about the event.
resourceGroupNamestringthe resource group name of the impacted resource.
resourceIdstringthe resource uri that uniquely identifies the resource that caused this event.
resourceProviderNameobjectThe localizable string class.
resourceTypeobjectThe localizable string class.
statusobjectThe localizable string class.
subStatusobjectThe localizable string class.
submissionTimestampstringthe timestamp of when the event became available for querying via this API. It is in ISO 8601 format. This value should not be confused eventTimestamp. As there might be a delay between the occurrence time of the event, and the time that the event is submitted to the Azure logging infrastructure.
subscriptionIdstringthe Azure subscription Id usually a GUID.
tenantIdstringthe Azure tenant Id

Methods

NameAccessible byRequired ParamsDescription
listSELECT$filter, subscriptionIdProvides the list of records from the activity logs.

SELECT examples

Provides the list of records from the activity logs.

SELECT
id,
description,
authorization,
caller,
category,
claims,
correlationId,
eventDataId,
eventName,
eventTimestamp,
httpRequest,
level,
operationId,
operationName,
properties,
resourceGroupName,
resourceId,
resourceProviderName,
resourceType,
status,
subStatus,
submissionTimestamp,
subscriptionId,
tenantId
FROM azure.monitor.activity_logs
WHERE $filter = '{{ $filter }}'
AND subscriptionId = '{{ subscriptionId }}';