Skip to content

Instantly share code, notes, and snippets.

@VerosK
Created April 14, 2020 15:04
Show Gist options
  • Save VerosK/7e310e4fafe999a6a0a87572a339eb7c to your computer and use it in GitHub Desktop.
Save VerosK/7e310e4fafe999a6a0a87572a339eb7c to your computer and use it in GitHub Desktop.
Multiple logstash inputs
filebeat.inputs:
- type: container
fields:
docker_env: prod
paths:
- /var/log/containers-prod/*.log
- type: container
fields:
docker_env: dev
paths:
- /var/log/containers-dev/*.log
output.elasticsearch:
hosts: ['elasticsearch.services:9200']
protocol: http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment