Skip to content

Commit a677229

Browse files
Merge d9661b0 into 628fb7f
2 parents 628fb7f + d9661b0 commit a677229

File tree

2 files changed

+697
-23
lines changed

2 files changed

+697
-23
lines changed

manual/Integration/Filebeat.md

Lines changed: 78 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,55 +4,110 @@
44
55
[Filebeat](https://www.elastic.co/beats/filebeat) is a lightweight shipper for forwarding and centralizing log data. Once installed as an agent, it monitors the log files or locations you specify, collects log events, and forwards them for indexing, usually to Elasticsearch or Logstash.
66

7-
Now, Manticore also supports the use of Filebeat as processing pipelines. This allows the collected and transformed data to be sent to Manticore just like to Elasticsearch. Currently, all the versions >= 7.10 are supported.
7+
Now, Manticore also supports the use of Filebeat as processing pipelines. This allows the collected and transformed data to be sent to Manticore just like to Elasticsearch. Currently, All versions to 9.0 are fully supported.
88

99
## Filebeat configuration
1010

11-
Below is a Filebeat config to work with our example dpkg log:
11+
Configuration varies slightly depending on which version of Filebeat you're using.
12+
13+
### Configuration for Filebeat 7.17 - 8.0
14+
15+
Note that Filebeat versions higher than 8.10 have the output compression feature enabled by default. That is why the `compression_level: 0` option must be added to the configuration file to provide compatibility with Manticore:
1216

1317
```
1418
filebeat.inputs:
15-
- type: filestream
16-
id: example
19+
- type: log
20+
enabled: true
1721
paths:
18-
- /var/log/dpkg.log
22+
- /var/log/dpkg.log
23+
close_eof: true
24+
scan_frequency: 1s
1925
2026
output.elasticsearch:
2127
hosts: ["http://localhost:9308"]
22-
index: "dpkg_log"
28+
index: "dpkg_log"
29+
compression_level: 0
30+
31+
setup.ilm.enabled: false
32+
setup.template.enabled: false
33+
setup.template.name: "dpkg_log"
34+
setup.template.pattern: "dpkg_log"
35+
```
36+
37+
### Configuration for Filebeat 8.1 - 8.10
38+
39+
For versions 8.1 through 8.10, you need to add the allow_older_versions option:
40+
41+
```
42+
filebeat.inputs:
43+
- type: log
44+
enabled: true
45+
paths:
46+
- /var/log/dpkg.log
47+
close_eof: true
48+
scan_frequency: 1s
49+
50+
output.elasticsearch:
51+
hosts: ["http://localhost:9308"]
52+
index: "dpkg_log"
53+
compression_level: 0
2354
allow_older_versions: true
2455
25-
setup.ilm:
26-
enabled: false
56+
setup.ilm.enabled: false
57+
setup.template.enabled: false
58+
setup.template.name: "dpkg_log"
59+
setup.template.pattern: "dpkg_log"
60+
```
61+
62+
### Configuration for Filebeat 8.11 - 8.18
63+
64+
From version 8.11, output compression is enabled by default, so you must explicitly set `compression_level: 0` for compatibility with Manticore:
65+
66+
```
67+
filebeat.inputs:
68+
- type: log
69+
enabled: true
70+
paths:
71+
- /var/log/dpkg.log
72+
close_eof: true
73+
scan_frequency: 1s
74+
75+
output.elasticsearch:
76+
hosts: ["http://localhost:9308"]
77+
index: "dpkg_log"
78+
compression_level: 0
79+
allow_older_versions: true
2780
28-
setup.template:
29-
name: "dpkg_log"
30-
pattern: "dpkg_log"
81+
setup.ilm.enabled: false
82+
setup.template.enabled: false
83+
setup.template.name: "dpkg_log"
84+
setup.template.pattern: "dpkg_log"
3185
```
3286

33-
### Configuration for Filebeat versions >= 8.11
87+
### Configuration for Filebeat 9.0
3488

35-
Note that Filebeat versions higher than 8.10 have the output compression feature enabled by default. That is why the `compression_level: 0` option must be added to the configuration file to provide compatibility with Manticore:
89+
Filebeat 9.0 introduces a major architecture change, replacing the log input type with filestream. Here's the required configuration:
3690

3791
```
3892
filebeat.inputs:
3993
- type: filestream
40-
id: example
94+
id: dpkg-log-input
95+
enabled: true
4196
paths:
42-
- /var/log/dpkg.log
97+
- /var/log/dpkg.log
98+
prospector.scanner.check_interval: 1s
99+
close.on_eof: true
43100
44101
output.elasticsearch:
45102
hosts: ["http://localhost:9308"]
46-
index: "dpkg_log"
47-
allow_older_versions: true
103+
index: "dpkg_log"
48104
compression_level: 0
105+
allow_older_versions: true
49106
50-
setup.ilm:
51-
enabled: false
52-
53-
setup.template:
54-
name: "dpkg_log"
55-
pattern: "dpkg_log"
107+
setup.ilm.enabled: false
108+
setup.template.enabled: false
109+
setup.template.name: "dpkg_log"
110+
setup.template.pattern: "dpkg_log"
56111
```
57112

58113
## Filebeat results

0 commit comments

Comments
 (0)