Skip to content

Instantly share code, notes, and snippets.

@johnkeates
Last active April 4, 2016 13:55
Show Gist options
  • Save johnkeates/c26a9b381bf61672b07302034fcfc638 to your computer and use it in GitHub Desktop.
Save johnkeates/c26a9b381bf61672b07302034fcfc638 to your computer and use it in GitHub Desktop.
filebeat:
config:
filebeat:
# List of prospectors to fetch data.
prospectors:
# Each - is a prospector.
-
paths:
- "/var/log/daemon.log"
-
paths:
- "/var/log/auth.log"
input_type: log
filebeat:
output:
elasticsearch:
hosts:
- localhost:9200
prospectors:
- paths:
- /var/log/daemon.log
- input_type: log
paths:
- /var/log/auth.log
filebeat-config:
file.serialize:
- name: {{ filebeat.configfile }}
- mode: 644
- user: root
- group: root
- dataset: {{ filebeat.config }}
- formatter: "YAML"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment