Skip to content

Commit

Permalink
Add mapping for event_name for OTel logs (#119495) (#119517)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbarny authored Jan 3, 2025
1 parent 8f5493c commit 9e46ac3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/changelog/119495.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 119495
summary: Add mapping for `event_name` for OTel logs
area: Data streams
type: enhancement
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ template:
log.level:
type: alias
path: severity_text
event_name:
type: keyword
body:
type: object
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ Event body:
service.name: my-service
attributes:
event.name: foo
event_name: foo
body:
structured:
foo:
Expand All @@ -119,6 +120,7 @@ Event body:
index: $datastream-backing-index
- is_true: $datastream-backing-index
- match: { .$datastream-backing-index.mappings.properties.body.properties.structured.properties.foo\.bar.type: "keyword" }
- match: { .$datastream-backing-index.mappings.properties.event_name.type: "keyword" }
---
Structured log body:
- do:
Expand Down

0 comments on commit 9e46ac3

Please sign in to comment.