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

Use filestream input instead of deprecated log #69

Merged
merged 3 commits into from
Apr 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/tab-widgets/filebeat.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@
. Follow the {filebeat-ref}/filebeat-installation-configuration.html[Filebeat quick start]
. Add the following configuration to your `filebeat.yaml` file.

For Filebeat 7.16+

[source,yaml]
.filebeat.yaml
----
filebeat.inputs:
- type: filestream
paths: /path/to/logs.json
parsers:
- ndjson:
keys_under_root: true
overwrite_keys: true
add_error_key: true
expand_keys: true

processors:
- add_host_metadata: ~
- add_cloud_metadata: ~
- add_docker_metadata: ~
- add_kubernetes_metadata: ~
----

For Filebeat < 7.16

[source,yaml]
.filebeat.yaml
----
Expand All @@ -13,6 +37,12 @@ filebeat.inputs:
json.overwrite_keys: true
json.add_error_key: true
json.expand_keys: true

processors:
- add_host_metadata: ~
- add_cloud_metadata: ~
- add_docker_metadata: ~
- add_kubernetes_metadata: ~
----
// end::logs[]

Expand Down