Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Elastic Agent] Send Agent logs to elasticsearch #19811

Merged
merged 12 commits into from
Jul 14, 2020
5 changes: 3 additions & 2 deletions libbeat/logp/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ func Configure(cfg Config) error {
return ConfigureWithOutputs(cfg)
}

// Configure configures the logp package also sets up the following outputs to also be used
// by the logger.
// Configure configures the logger from passed in config and also adds the passed outputs to the logger.
//
// When passing in outputs the logger will log to each output.
blakerouse marked this conversation as resolved.
Show resolved Hide resolved
func ConfigureWithOutputs(cfg Config, outputs ...zapcore.Core) error {
blakerouse marked this conversation as resolved.
Show resolved Hide resolved
var (
sink zapcore.Core
Expand Down