[azure logs] Add support for body.structured logs events from azurelogs encoding extension (OTel)#15891
[azure logs] Add support for body.structured logs events from azurelogs encoding extension (OTel)#15891
Conversation
|
Quick test using the Dev Tools: Send a Send a JSON string inside `message` field{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": ".ds-logs-azure.activitylogs-default-2025.11.06-000001",
"_id": "OTH6WpoBGriDMOmNWcJf",
"_score": 1,
"_source": {
"cloud": {
"provider": "azure"
},
"@timestamp": "2021-05-25T22:04:07.220Z",
"ecs": {
"version": "8.11.0"
},
"related": {
"entity": [
"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.domainRegistration"
]
},
"log": {
"level": "Information"
},
"data_stream": {
"namespace": "default",
"type": "logs",
"dataset": "azure.activitylogs"
},
"event": {
"agent_id_status": "missing",
"ingested": "2025-11-06T21:02:27Z",
"kind": "event",
"action": "Microsoft.Resourcehealth/healthevent/Updated/action",
"dataset": "azure.activitylogs"
},
"azure": {
"subscription_id": "00000000-0000-0000-0000-000000000000",
"resource": {
"provider": "Microsoft.domainRegistration",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.domainRegistration"
},
"correlation_id": "1c867fe2-050c-4a74-bb1c-a83b15246fdd",
"activitylogs": {
"operation_name": "Microsoft.Resourcehealth/healthevent/Updated/action",
"result_type": "Updated",
"category": "ResourceHealth",
"event_category": "ResourceHealth",
"properties": {
"eventProperties": {
"cause": "PlatformInitiated"
}
}
}
}
}
}
]
}
}object inside `body.structured` field{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": ".ds-logs-azure.activitylogs-default-2025.11.06-000001",
"_id": "bzH9WpoBGriDMOmN3MIt",
"_score": 1,
"_source": {
"cloud": {
"provider": "azure"
},
"@timestamp": "2021-05-25T22:04:07.220Z",
"ecs": {
"version": "8.11.0"
},
"related": {
"entity": [
"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.domainRegistration"
]
},
"log": {
"level": "Information"
},
"data_stream": {
"namespace": "default",
"type": "logs",
"dataset": "azure.activitylogs"
},
"event": {
"agent_id_status": "missing",
"ingested": "2025-11-06T21:06:17Z",
"kind": "event",
"action": "Microsoft.Resourcehealth/healthevent/Updated/action",
"dataset": "azure.activitylogs"
},
"azure": {
"subscription_id": "00000000-0000-0000-0000-000000000000",
"resource": {
"provider": "Microsoft.domainRegistration",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.domainRegistration"
},
"correlation_id": "1c867fe2-050c-4a74-bb1c-a83b15246fdd",
"activitylogs": {
"operation_name": "Microsoft.Resourcehealth/healthevent/Updated/action",
"result_type": "Updated",
"category": "ResourceHealth",
"event_category": "ResourceHealth",
"properties": {
"eventProperties": {
"cause": "PlatformInitiated"
}
}
}
}
}
}
]
}
}The search, save the result in two files, and compare them: diff message.json body.structured.json
19c19
< "_id": "OTH6WpoBGriDMOmNWcJf",
---
> "_id": "bzH9WpoBGriDMOmN3MIt",
44c44
< "ingested": "2025-11-06T21:02:27Z",
---
> "ingested": "2025-11-06T21:06:17Z",
`` |
🚀 Benchmarks reportTo see the full report comment with |
|
The result comparison looks great! I assume we have a separate PR for routing documents from |
Yep, users can route log events encoded by the |
💚 Build Succeeded
History
cc @zmoog |
|
We decided not to move forward with this implementation. |
Proposed commit message
Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues
Screenshots