Skip to content

Instantly share code, notes, and snippets.

@amura2406
Created April 12, 2017 11:42
Show Gist options
  • Save amura2406/5ede2bc497dd249f757c6c9a9cdd0b1b to your computer and use it in GitHub Desktop.
Save amura2406/5ede2bc497dd249f757c6c9a9cdd0b1b to your computer and use it in GitHub Desktop.
Sample Filebeat.yml
filebeat:
prospectors:
-
paths:
- /var/log/nginx/access.log
fields:
app_id: api_1
source_type: "access"
fields_under_root: true
-
paths:
- /data/app/log/success.log
fields:
app_id: api_1
source_type: "streamline"
success_type: "success"
fields_under_root: true
-
paths:
- /data/app/log/failure.log
fields:
app_id: api_1
source_type: "streamline"
success_type: "failure"
fields_under_root: true
output.logstash:
hosts: ["10.2.15.47:5555"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment