Skip to content

Commit

Permalink
feat(ext/filebeat): ingest ES logs via elasticsearch module
Browse files Browse the repository at this point in the history
Ensures that Elasticsearch log entries are processed through dedicated
ingestion pipelines, so that their fields can be automatically
extracted.
  • Loading branch information
antoineco committed Feb 14, 2024
1 parent e3a9d60 commit 5da1bad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions extensions/filebeat/config/filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ filebeat.autodiscover:
type: container
paths:
- /var/lib/docker/containers/${data.container.id}/*-json.log
templates:
- condition:
contains:
docker.container.image: elasticsearch
config:
- module: elasticsearch
server:
input:
type: container
paths:
- /var/lib/docker/containers/${data.container.id}/*-json.log

processors:
- add_cloud_metadata: ~
Expand Down
1 change: 1 addition & 0 deletions setup/roles/filebeat_writer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"cluster": [
"manage_ilm",
"manage_index_templates",
"manage_ingest_pipelines",
"monitor",
"read_pipeline"
],
Expand Down

0 comments on commit 5da1bad

Please sign in to comment.