Skip to content

Commit 0e53a9b

Browse files
aleksmausmergify-bot
authored andcommitted
Osquerybeat: set the raw index name to supress the timestamp suffix (#26545)
(cherry picked from commit 67cf2c6)
1 parent e159ecc commit 0e53a9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/osquerybeat/beater/osquerybeat.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"golang.org/x/sync/errgroup"
2020

2121
"github.com/elastic/beats/v7/libbeat/beat"
22+
"github.com/elastic/beats/v7/libbeat/beat/events"
2223
"github.com/elastic/beats/v7/libbeat/common"
2324
"github.com/elastic/beats/v7/libbeat/logp"
2425
"github.com/elastic/beats/v7/libbeat/processors"
@@ -430,7 +431,7 @@ func (bt *osquerybeat) publishEvents(index, actionID, responseID string, hits []
430431
event.Fields["response_id"] = responseID
431432
}
432433
if index != "" {
433-
event.Meta = common.MapStr{"index": index}
434+
event.Meta = common.MapStr{events.FieldMetaRawIndex: index}
434435
}
435436

436437
bt.client.Publish(event)

0 commit comments

Comments
 (0)