Skip to content

Instantly share code, notes, and snippets.

@matheusopedro
Created February 27, 2019 21:56
Show Gist options
  • Save matheusopedro/dec13bee244a10a3d67c71c179189de6 to your computer and use it in GitHub Desktop.
Save matheusopedro/dec13bee244a10a3d67c71c179189de6 to your computer and use it in GitHub Desktop.
Configuração do filebeat para mapear objetos JSON em linhas de log
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