Created
February 27, 2019 21:56
-
-
Save matheusopedro/dec13bee244a10a3d67c71c179189de6 to your computer and use it in GitHub Desktop.
Configuração do filebeat para mapear objetos JSON em linhas de log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filebeat.inputs: | |
# Each - is an input. Most options can be set at the input level, so | |
# you can use different inputs for various configurations. | |
# Below are the input specific configurations. | |
- type: log | |
# Change to true to enable this input configuration. | |
enabled: true | |
# Paths that should be crawled and fetched. Glob based paths. | |
paths: | |
- /app/logs/*.log | |
json.keys_under_root: true | |
processors: | |
- decode_json_fields: | |
fields: ['message', 'level', 'log'] | |
target: json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment