Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions to setup filebeat #12

Open
ScholliYT opened this issue Sep 17, 2020 · 1 comment
Open

Instructions to setup filebeat #12

ScholliYT opened this issue Sep 17, 2020 · 1 comment

Comments

@ScholliYT
Copy link

The current Readme doesn't specify how to setup a Filebeat for pushing the logs from i.e. monolithic to logstash.

My current setup with lancachenet/docker-compose looks like this:

  • edit docker-compose.yml of lancachenet/docker-compose to include
  filebeat:
    image: docker.elastic.co/beats/filebeat:7.9.1
    volumes:
      - ${CACHE_ROOT}/logs:/data/logs
      - ./config/filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml

where ./config/filebeat/filebeat.yml is

name: "lancache"
filebeat.inputs:
- type: log
  paths:
  - '/data/logs/*.log'
  encoding: utf-8
output.logstash:
  hosts: ["logstash_IP:5044"]
  bulk_max_size: 1024

This sends the logs from the volume mounted into monolithic via filebeat to logstash where they get processed by the v7 pipeline from #10.

@ewancolyer
Copy link
Contributor

For anyone that comes across this in future - A sample setup with docker compose has been merged in now which should do this for you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants