Skip to content

Commit

Permalink
Use IndexPrefix for kafka and logstash output.
Browse files Browse the repository at this point in the history
Output index differed to Elasticsearch output.

fixes elastic#10839
  • Loading branch information
simitt committed Feb 25, 2019
1 parent 59a05ed commit 210ce7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libbeat/outputs/kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func makeKafka(
return outputs.Fail(err)
}

client, err := newKafkaClient(observer, hosts, beat.Beat, config.Key, topic, codec, libCfg)
client, err := newKafkaClient(observer, hosts, beat.IndexPrefix, config.Key, topic, codec, libCfg)
if err != nil {
return outputs.Fail(err)
}
Expand Down
2 changes: 1 addition & 1 deletion libbeat/outputs/logstash/logstash.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func makeLogstash(
cfg *common.Config,
) (outputs.Group, error) {
if !cfg.HasField("index") {
cfg.SetString("index", -1, beat.Beat)
cfg.SetString("index", -1, beat.IndexPrefix)
}

err := cfgwarn.CheckRemoved6xSettings(cfg, "port")
Expand Down

0 comments on commit 210ce7e

Please sign in to comment.