Skip to content

Commit

Permalink
[Elastic Log Driver] Add redis and kafka outputs (#15719) (#15777)
Browse files Browse the repository at this point in the history
* add redis and kafka out

* add cloud output

* add changelog

(cherry picked from commit 1820369)
  • Loading branch information
fearful-symmetry committed Jan 23, 2020
1 parent 84ceccd commit 4756a99
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix `metricbeat test output` with an ipv6 ES host in the output.hosts. {pull}15368[15368]
- Fix `convert` processor conversion of string to integer with leading zeros. {issue}15513[15513] {pull}15557[15557]
- Fix panic in the Logstash output when trying to send events to closed connection. {pull}15568[15568]
- Fix missing output in dockerlogbeat {pull}15719[15719]

*Auditbeat*

Expand Down
2 changes: 2 additions & 0 deletions x-pack/dockerlogbeat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import (
_ "github.com/elastic/beats/libbeat/outputs/console"
_ "github.com/elastic/beats/libbeat/outputs/elasticsearch"
_ "github.com/elastic/beats/libbeat/outputs/fileout"
_ "github.com/elastic/beats/libbeat/outputs/kafka"
_ "github.com/elastic/beats/libbeat/outputs/logstash"
_ "github.com/elastic/beats/libbeat/outputs/redis"
_ "github.com/elastic/beats/libbeat/publisher/queue/memqueue"
_ "github.com/elastic/beats/libbeat/publisher/queue/spool"
"github.com/elastic/beats/libbeat/service"
Expand Down
8 changes: 8 additions & 0 deletions x-pack/dockerlogbeat/pipelinemanager/libbeattools.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
yaml "gopkg.in/yaml.v2"

"github.com/elastic/beats/libbeat/beat"
"github.com/elastic/beats/libbeat/cloudid"
"github.com/elastic/beats/libbeat/common"
"github.com/elastic/beats/libbeat/idxmgmt"
"github.com/elastic/beats/libbeat/logp"
Expand Down Expand Up @@ -67,6 +68,13 @@ func loadNewPipeline(logOptsConfig map[string]string, name string, log *logp.Log
if err != nil {
return nil, err
}

// Attach CloudID config if needed
err = cloudid.OverwriteSettings(cfg)
if err != nil {
return nil, errors.Wrap(err, "Error creating CloudID")
}

config := containerConfig{}
err = cfg.Unpack(&config)
if err != nil {
Expand Down

0 comments on commit 4756a99

Please sign in to comment.