File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 33. Follow the {filebeat-ref} /filebeat-installation-configuration.html[Filebeat quick start]
44. Add the following configuration to your `filebeat.yaml` file.
55
6+ For Filebeat 7.16+
7+
8+ [source,yaml]
9+ .filebeat.yaml
10+ ----
11+ filebeat.inputs:
12+ - type: filestream
13+ paths: /path/to/logs.json
14+ parsers:
15+ - ndjson:
16+ keys_under_root: true
17+ overwrite_keys: true
18+ add_error_key: true
19+ expand_keys: true
20+
21+ processors:
22+ - add_host_metadata: ~
23+ - add_cloud_metadata: ~
24+ - add_docker_metadata: ~
25+ - add_kubernetes_metadata: ~
26+ ----
27+
28+ For Filebeat < 7.16
29+
630[source,yaml]
731.filebeat.yaml
832----
@@ -13,6 +37,12 @@ filebeat.inputs:
1337 json.overwrite_keys: true
1438 json.add_error_key: true
1539 json.expand_keys: true
40+
41+ processors:
42+ - add_host_metadata: ~
43+ - add_cloud_metadata: ~
44+ - add_docker_metadata: ~
45+ - add_kubernetes_metadata: ~
1646----
1747// end::logs[]
1848
You can’t perform that action at this time.
0 commit comments