Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 567 Bytes

filebeat.md

File metadata and controls

30 lines (25 loc) · 567 Bytes

filebeat

docker

docker pull docker.elastic.co/beats/filebeat:5.6.12

filebeat.yml

filebeat.prospectors:
- input_type: log
  paths:
    - /var/log/myapp/log.*
  tags: ["myapp"]
  json.keys_under_root: true

output.elasticsearch:
  hosts: ['my_elasticsearch_ip:9200']

rum

docker run -d \
  --name=filebeat \
  --user=root  \
  --volume="/path/to/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro" \
  --volume="/path/to/log/dir/:/var/log/myapp/:ro" \
  docker.elastic.co/beats/filebeat:5.6.12 filebeat -e -strict.perms=false