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 3
3
. Follow the {filebeat-ref} /filebeat-installation-configuration.html[Filebeat quick start]
4
4
. Add the following configuration to your `filebeat.yaml` file.
5
5
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
+
6
30
[source,yaml]
7
31
.filebeat.yaml
8
32
----
@@ -13,6 +37,12 @@ filebeat.inputs:
13
37
json.overwrite_keys: true
14
38
json.add_error_key: true
15
39
json.expand_keys: true
40
+
41
+ processors:
42
+ - add_host_metadata: ~
43
+ - add_cloud_metadata: ~
44
+ - add_docker_metadata: ~
45
+ - add_kubernetes_metadata: ~
16
46
----
17
47
// end::logs[]
18
48
You can’t perform that action at this time.
0 commit comments