Skip to content

Commit

Permalink
Merge pull request #160 from dkeven/correctesparams
Browse files Browse the repository at this point in the history
Fix the incorrect keys of the es output plugin
  • Loading branch information
benjaminhuo committed Oct 31, 2021
2 parents 4b96fcc + 7af22a2 commit dcdfa8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ func (es *Elasticsearch) Params(sl plugins.SecretLoader) (*params.KVs, error) {
kvs.Insert("HTTP_Passwd", pwd)
}
if es.Index != "" {
kvs.Insert("Host", es.Index)
kvs.Insert("Index", es.Index)
}
if es.Type != "" {
kvs.Insert("Host", es.Type)
kvs.Insert("Type", es.Type)
}
if es.LogstashFormat != nil {
kvs.Insert("Logstash_Format", fmt.Sprint(*es.LogstashFormat))
Expand Down

0 comments on commit dcdfa8a

Please sign in to comment.