Skip to content

Commit 35277e3

Browse files
committed
Adds filestream input for API logs
Configures Filebeat to ingest API logs from a specified path. This change introduces a new filestream input, enabling Filebeat to monitor and process JSON log files. The logs are parsed as ndjson, ensuring proper handling of the data. Debug logging is enabled to aid in troubleshooting.
1 parent b5f8d24 commit 35277e3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

filebeat.prod.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
filebeat.inputs:
2+
- type: filestream
3+
id: api-onibusbh-prod
4+
enabled: true
5+
paths:
6+
- /usr/share/filebeat/logs/*.json
7+
parsers:
8+
- ndjson:
9+
target: ""
10+
overwrite_keys: true
11+
add_error_key: true
12+
13+
logging.level: debug
14+
logging.to_stderr: true
15+
logging.selectors: ["*"]
16+
117
filebeat.autodiscover:
218
providers:
319
- type: docker

0 commit comments

Comments
 (0)