Skip to content

Commit 6d11490

Browse files
authored
Use filestream input instead of deprecated log (#69)
1 parent bdcd8f0 commit 6d11490

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/tab-widgets/filebeat.asciidoc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,30 @@
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

0 commit comments

Comments
 (0)