I want to configure two different logs in FIlebeat. I have system logs and JSON logs from my application. Can I configure both these in a single config file? If yes, what would be the configuration required for it?
In the filebeat.yml I have below configuration:
prospectors:
# Each - is a prospector. Below are the prospector specific configurations
-
input_type: log
# Paths that should be crawled and fetched. Glob based paths.
# For each file found under this path, a harvester is started.
paths:
- /home/Downloads/logs/log5.log
# Type to be published in the 'type' field. For Elasticsearch output,
# the type defines the document type these entries should be stored
# in. Default: log
document_type: applog
json:
message_key: log
keys_under_root: true
overwrite_keys: true
-
input_type: log
paths:
- /home/Downloads/logs_sys/log1.log
document_type: systemlog
Thanks