Skip to content

Commit

Permalink
Fix docker provider add_fields processors
Browse files Browse the repository at this point in the history
The Docker provider was using a wrong key when defining the
`add_fields` processor, this causes Filebeat not to start the input
and stay on a unhealthy state. This processor seems to be defined
every time a variable like `${docker}` is used on a input
configuration.

This commig fixes it.
  • Loading branch information
belimawr committed Oct 11, 2022
1 parent 7e252d9 commit 46238f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions x-pack/elastic-agent/CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
- Allow ':' characters in dynamic variables. {pull}32407[32407]
- Allow the - char to appear as part of variable names in eql expressions. {pull}32350[32350]
- Allow the / char to appear as part of variable names in eql expressions. {pull}32528{32528}
- Fix add_fields processor on Docker provider {pull}33269{33269}

==== New features

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func generateData(event bus.Event) (*dockerContainerData, error) {
"image": container.Image,
"labels": processorLabelMap,
},
"to": "container",
"target": "container",
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func TestGenerateData(t *testing.T) {
"co_elastic_logs/disable": "true",
},
},
"to": "container",
"target": "container",
},
},
}
Expand Down

0 comments on commit 46238f3

Please sign in to comment.