| title | Azure Event Grid resource logs schema |
|---|---|
| description | This article provides schema information for resources logs in Azure Event Grid. |
| author | spelluru |
| ms.service | azure-stream-analytics |
| ms.topic | include |
| ms.date | 03/20/2024 |
| ms.author | spelluru |
| ms.custom | include file |
All logs are stored in JSON format. Each entry has the following common string fields:
| Name | Description |
|---|---|
| time | Timestamp (in UTC) of the log. |
| resourceId | ID of the resource that the operation took place on, in upper case. It includes the subscription ID, the resource group, and the job name. For example, /SUBSCRIPTIONS/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/RESOURCEGROUPS/MY-RESOURCE-GROUP/PROVIDERS/MICROSOFT.STREAMANALYTICS/STREAMINGJOBS/MYSTREAMINGJOB. |
| category | Log category, either Execution or Authoring. |
| operationName | Name of the operation that is logged. For example, Send Events: SQL Output write failure to mysqloutput. |
| status | Status of the operation. For example, Failed or Succeeded. |
| level | Log level. For example, Error, Warning, or Informational. |
| properties | Log entry-specific detail, serialized as a JSON string. For more information, see the following sections in this article. |
Execution logs have information about events that happened during Stream Analytics job execution. The schema of properties varies depending on whether the event is a data error or a generic event.
Any error that occurs while the job is processing data is in this category of logs. These logs most often are created during data read, serialization, and write operations. These logs don't include connectivity errors. Connectivity errors are treated as generic events. You can learn more about the cause of various different input and output data errors.
| Name | Description |
|---|---|
| Source | Name of the job input or output where the error occurred. |
| Message | Message associated with the error. |
| Type | Type of error. For example, DataConversionError, CsvParserError, or ServiceBusPropertyColumnMissingError. |
| Data | Contains data that is useful to accurately locate the source of the error. Subject to truncation, depending on size. |
Depending on the operationName value, data errors have the following schema:
-
Serialize events occur during event read operations. They occur when the data at the input doesn't satisfy the query schema for one of these reasons:
-
Type mismatch during event serialization/deserialization: Identifies the field that's causing the error.
-
Can't read an event, invalid serialization: Lists information about the location in the input data where the error occurred. Includes blob name for blob input, offset, and a sample of the data.
-
-
Send events occur during write operations. They identify the streaming event that caused the error.
Generic events cover everything else.
| Name | Description |
|---|---|
| Error | (optional) Error information. Usually, it's the exception information if it's available. |
| Message | Log message. |
| Type | Type of message. Maps to internal categorization of errors. For example, JobValidationError or BlobOutputAdapterInitializationFailure. |
| Correlation ID | GUID that uniquely identifies the job execution. All execution log entries from the time the job starts until the job stops have the same Correlation ID value. |
For reference, see a list of all resource logs category types supported in Azure Monitor or all the resource log category types collected for Azure Stream Analytics.