Skip to content

Commit f7aca66

Browse files
kvchmergify-bot
authored andcommitted
Remove Docker input from Filebeat (#28817)
Users should use either `container` input or `filestream` input with `container` parser. (cherry picked from commit fa1cbbe)
1 parent ada8eae commit f7aca66

9 files changed

Lines changed: 9 additions & 329 deletions

File tree

CHANGELOG.next.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
5959
- Fail to start Filebat if none between `queue_url`, `bucket_arn` or `non_aws_bucket_name` is set for a configured aws-s3 input {issue}13911[13911] {pull}28666[28666]
6060
- All modules: Replace usages of deprecated ECS fields `process.ppid` and `log.original` with `process.parent.pid` and `event.original`. {pull}28620[28620]
6161
- Replace usages of `host.user.*` fields with `user.*` in `cisco`, `microsoft` and `oracle` modules. {pull}28620[28620]
62+
- Remove `docker` input. Please use `filestream` input with `container` parser or `container` input. {pull}28817[28817]
6263

6364
*Heartbeat*
6465

filebeat/docs/filebeat-options.asciidoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ You can configure {beatname_uc} to use the following inputs:
6767
* <<{beatname_lc}-input-azure-eventhub>>
6868
* <<{beatname_lc}-input-cloudfoundry>>
6969
* <<{beatname_lc}-input-container>>
70-
* <<{beatname_lc}-input-docker>>
7170
* <<{beatname_lc}-input-filestream>>
7271
* <<{beatname_lc}-input-gcp-pubsub>>
7372
* <<{beatname_lc}-input-http_endpoint>>
@@ -97,8 +96,6 @@ include::../../x-pack/filebeat/docs/inputs/input-cloudfoundry.asciidoc[]
9796

9897
include::inputs/input-container.asciidoc[]
9998

100-
include::inputs/input-docker.asciidoc[]
101-
10299
include::inputs/input-filestream.asciidoc[]
103100

104101
include::../../x-pack/filebeat/docs/inputs/input-gcp-pubsub.asciidoc[]

filebeat/docs/inputs/input-docker.asciidoc

Lines changed: 0 additions & 108 deletions
This file was deleted.

filebeat/include/list.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

filebeat/input/docker/config.go

Lines changed: 0 additions & 49 deletions
This file was deleted.

filebeat/input/docker/input.go

Lines changed: 0 additions & 119 deletions
This file was deleted.

filebeat/input/docker/input_test.go

Lines changed: 0 additions & 35 deletions
This file was deleted.

filebeat/tests/system/test_registrar.py

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,20 +1346,14 @@ def test_registrar_meta(self):
13461346
"""
13471347

13481348
self.render_config_template(
1349-
type='docker',
1349+
type='container',
13501350
input_raw='''
1351-
containers:
1352-
path: {path}
1353-
stream: stdout
1354-
ids:
1355-
- container_id
1356-
- type: docker
1357-
containers:
1358-
path: {path}
1359-
stream: stderr
1360-
ids:
1361-
- container_id
1362-
'''.format(path=os.path.abspath(self.working_dir) + "/log/")
1351+
paths: {path}
1352+
stream: stdout
1353+
- type: container
1354+
paths: {path}
1355+
stream: stderr
1356+
'''.format(path=os.path.abspath(self.working_dir) + "/log/*/*.log")
13631357
)
13641358
os.mkdir(self.working_dir + "/log/")
13651359
os.mkdir(self.working_dir + "/log/container_id")

x-pack/filebeat/docs/inputs/input-aws-s3.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ it was uploaded. For example: `application/json`.
114114
==== `encoding`
115115

116116
The file encoding to use for reading data that contains international
117-
characters. This only applies to non-JSON logs. See <<_encoding_5>>.
117+
characters. This only applies to non-JSON logs. See <<_encoding_3>>.
118118

119119

120120
[float]

0 commit comments

Comments
 (0)