Skip to content

Commit

Permalink
[Elastic Agent] Fix logging read from runnings process (elastic#18285)
Browse files Browse the repository at this point in the history
Backport of elastic#18275
  • Loading branch information
ruflin authored May 6, 2020
1 parent 1e01fe8 commit 7f31e12
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions x-pack/elastic-agent/pkg/agent/operation/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package operation

import (
"github.com/hashicorp/go-multierror"
multierror "github.com/hashicorp/go-multierror"

"github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/configrequest"
"github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/errors"
Expand Down Expand Up @@ -168,7 +168,12 @@ func (o *Operator) getMonitoringFilebeatConfig(output interface{}) (map[string]i
"filebeat": map[string]interface{}{
"inputs": []interface{}{
map[string]interface{}{
"type": "log",
"type": "log",
"multiline": map[string]interface{}{
"pattern": "^[0-9]{4}",
"negate": true,
"match": "after",
},
"paths": paths,
"index": "logs-agent-default",
"processors": []map[string]interface{}{
Expand Down

0 comments on commit 7f31e12

Please sign in to comment.