Skip to content

Commit

Permalink
Remove Docker input from Filebeat (#28817)
Browse files Browse the repository at this point in the history
Users should use either `container` input or `filestream` input with `container` parser.
  • Loading branch information
kvch authored Nov 8, 2021
1 parent 84e668c commit fa1cbbe
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 329 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- 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]
- All modules: Replace usages of deprecated ECS fields `process.ppid` and `log.original` with `process.parent.pid` and `event.original`. {pull}28620[28620]
- Replace usages of `host.user.*` fields with `user.*` in `cisco`, `microsoft` and `oracle` modules. {pull}28620[28620]
- Remove `docker` input. Please use `filestream` input with `container` parser or `container` input. {pull}28817[28817]

*Heartbeat*

Expand Down
3 changes: 0 additions & 3 deletions filebeat/docs/filebeat-options.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ You can configure {beatname_uc} to use the following inputs:
* <<{beatname_lc}-input-azure-eventhub>>
* <<{beatname_lc}-input-cloudfoundry>>
* <<{beatname_lc}-input-container>>
* <<{beatname_lc}-input-docker>>
* <<{beatname_lc}-input-filestream>>
* <<{beatname_lc}-input-gcp-pubsub>>
* <<{beatname_lc}-input-http_endpoint>>
Expand Down Expand Up @@ -97,8 +96,6 @@ include::../../x-pack/filebeat/docs/inputs/input-cloudfoundry.asciidoc[]

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

include::inputs/input-docker.asciidoc[]

include::inputs/input-filestream.asciidoc[]

include::../../x-pack/filebeat/docs/inputs/input-gcp-pubsub.asciidoc[]
Expand Down
108 changes: 0 additions & 108 deletions filebeat/docs/inputs/input-docker.asciidoc

This file was deleted.

1 change: 0 additions & 1 deletion filebeat/include/list.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 0 additions & 49 deletions filebeat/input/docker/config.go

This file was deleted.

119 changes: 0 additions & 119 deletions filebeat/input/docker/input.go

This file was deleted.

35 changes: 0 additions & 35 deletions filebeat/input/docker/input_test.go

This file was deleted.

20 changes: 7 additions & 13 deletions filebeat/tests/system/test_registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1346,20 +1346,14 @@ def test_registrar_meta(self):
"""

self.render_config_template(
type='docker',
type='container',
input_raw='''
containers:
path: {path}
stream: stdout
ids:
- container_id
- type: docker
containers:
path: {path}
stream: stderr
ids:
- container_id
'''.format(path=os.path.abspath(self.working_dir) + "/log/")
paths: {path}
stream: stdout
- type: container
paths: {path}
stream: stderr
'''.format(path=os.path.abspath(self.working_dir) + "/log/*/*.log")
)
os.mkdir(self.working_dir + "/log/")
os.mkdir(self.working_dir + "/log/container_id")
Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/docs/inputs/input-aws-s3.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ it was uploaded. For example: `application/json`.
==== `encoding`

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


[float]
Expand Down

0 comments on commit fa1cbbe

Please sign in to comment.