Hello I have the following config file,
and I'm already pretty lost and I don't know where to direct log-format json logs to my custom "json-message" pipeline or where to use "decode_json_fields".
Please help
filebeat.config:
inputs:
path: ${path.config}/prospectors.d/*.yml
reload.enabled: false
modules:
path: /modules.d/*.yml
reload.enabled: false
filebeat.autodiscover:
providers:
- hints.enabled: false
templates:
- condition:
equals:
kubernetes.labels.app: mongodb
config:
- log:
input:
containers.ids:
- ${data.kubernetes.container.id}
exclude_lines:
- ^\s+[\-`('.|_]
type: docker
module: mongodb
- condition:
equals:
kubernetes.labels.app: redis
config:
- log:
input:
containers.ids:
- ${data.kubernetes.container.id}
exclude_lines:
- ^\s+[\-`('.|_]
type: docker
module: redis
slowlog:
enabled: false
- condition:
equals:
kubernetes.labels.log-format: json
config:
- containers.ids:
- ${data.kubernetes.container.id}
exclude_lines:
- ^\s+[\-`('.|_]
type: docker
type: kubernetes
filebeat.inputs: []
http.enabled: false
http.port: 5066
output.elasticsearch:
hosts:
- logs-elasticsearch-client:9200
output.file:
filename: filebeat
number_of_files: 5
path: /usr/share/filebeat/data
rotate_every_kb: 10000
output.file.enabled: false
processors:
- add_cloud_metadata: null
setup.kibana:
host: http://logs-kibana:5601
setup.template:
enabled: true
overwrite: false
settings:
index.number_of_replicas: 1
index.number_of_shards: 1