Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Azure Logs] mapper_parsing_exception while parsing field [identity] #4627

Closed
zmoog opened this issue Nov 11, 2022 · 2 comments · Fixed by #4629
Closed

[Azure Logs] mapper_parsing_exception while parsing field [identity] #4627

zmoog opened this issue Nov 11, 2022 · 2 comments · Fixed by #4629
Assignees
Labels
bug Something isn't working, use only for issues Integration:azure Azure Logs Team:Cloud-Monitoring Label for the Cloud Monitoring team

Comments

@zmoog
Copy link
Contributor

zmoog commented Nov 11, 2022

Scenario

A user is ingesting activity logs using the Platform Logs integration from the Azure Logs package.

Here is an example of the log events causing this issue:

{
    "Authorization": "null",
    "Claims": "{\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress\":\"Microsoft.RecoveryServices\"}",
    "DeploymentUnit": "<REDACTED>",
    "EventId": 162,
    "EventName": "<REDACTED>",
    "ResultDescription": "Backup Failed",
    "category": "Administrative",
    "correlationId": "cd0bc43e-61b5-11ed-9b6a-0242ac120002",
    "durationMs": 0,
    "eventName": "Backup",
    "identity": "{\"claims\":{\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress\":\"Microsoft.RecoveryServices\"}}",
    "level": "Error",
    "location": "eastus",
    "operationId": "cd0bc93e-61b5-11ed-9b6a-0242ac120002",
    "operationName": "<REDACTED>",
    "operationVersion": "null",
    "properties": {
        "Entity Name": "<REDACTED>",
        "Failure Details": "An invalid policy is configured on the VM which is preventing Snapshot operation. Please correct the policy and retry the operation. For more details, refer to http://aka.ms/UserErrorRequestDisallowedByPolicy ",
        "Job Id": "cd0bc43e-61b5-11ed-9b6a-0242ac120002",
        "Start Time": "2022-11-10 06:50:05Z"
    },
    "resourceId": "<REDACTED>",
    "resultType": "Failed",
    "time": "2022-11-11T06:50:11.0212041Z"
}

Expected result

The activity log event should be parsed and ingested.

Actual result

The log event parsing fails with the following error:

{
    "error": {
        "type": "mapper_parsing_exception",
        "reason": "object mapping for [azure.platformlogs.identity] tried to parse field [identity] as object, but found a concrete value"
    }
}
@zmoog zmoog added bug Something isn't working, use only for issues Integration:azure Azure Logs Team:Cloud-Monitoring Label for the Cloud Monitoring team labels Nov 11, 2022
@zmoog zmoog self-assigned this Nov 11, 2022
@zmoog
Copy link
Contributor Author

zmoog commented Nov 11, 2022

This error happens because there were previously ingested log events with the identity field of type object, but the last log events had it of type string.

@zmoog
Copy link
Contributor Author

zmoog commented Nov 11, 2022

We fixed something similar on the activity logs integration #3019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, use only for issues Integration:azure Azure Logs Team:Cloud-Monitoring Label for the Cloud Monitoring team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant