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
  • Loading branch information
aleksmaus committed Jun 28, 2021
1 parent a300f1b commit 28e0abf
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 28e0abf

Please sign in to comment.