Skip to content

Commit 9732b3c

Browse files
authored
Optimized index sorting for OTel logs (#119504) (#119746)
(cherry picked from commit afda404)
1 parent a62f9e4 commit 9732b3c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/changelog/119504.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 119504
2+
summary: Optimized index sorting for OTel logs
3+
area: Data streams
4+
type: enhancement
5+
issues: []

x-pack/plugin/otel-data/src/main/resources/component-templates/[email protected]

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ template:
99
mode: logsdb
1010
sort:
1111
field: [ "resource.attributes.host.name", "@timestamp" ]
12+
order: [ "asc", "desc" ]
1213
mappings:
1314
properties:
1415
attributes:

0 commit comments

Comments
 (0)