Skip to content

Commit

Permalink
Osquerybeat: set the raw index name to supress the timestamp suffix (#…
Browse files Browse the repository at this point in the history
…26545) (#26549)

(cherry picked from commit 67cf2c6)

Co-authored-by: Aleksandr Maus <[email protected]>
  • Loading branch information
mergify[bot] and aleksmaus authored Jun 29, 2021
1 parent 7de4b31 commit 3de67ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/osquerybeat/beater/osquerybeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"golang.org/x/sync/errgroup"

"github.com/elastic/beats/v7/libbeat/beat"
"github.com/elastic/beats/v7/libbeat/beat/events"
"github.com/elastic/beats/v7/libbeat/common"
"github.com/elastic/beats/v7/libbeat/logp"
"github.com/elastic/beats/v7/libbeat/processors"
Expand Down Expand Up @@ -430,7 +431,7 @@ func (bt *osquerybeat) publishEvents(index, actionID, responseID string, hits []
event.Fields["response_id"] = responseID
}
if index != "" {
event.Meta = common.MapStr{"index": index}
event.Meta = common.MapStr{events.FieldMetaRawIndex: index}
}

bt.client.Publish(event)
Expand Down

0 comments on commit 3de67ff

Please sign in to comment.