Browse Source

filebeat

135-scirius
Steven Foerster 5 years ago
parent
commit
83119cb9b8
  1. 66
      extra/scirius.yml

66
extra/scirius.yml

@ -27,45 +27,45 @@ services:
- "traefik.http.services.scirius-service.loadbalancer.server.port=8000" - "traefik.http.services.scirius-service.loadbalancer.server.port=8000"
restart: unless-stopped restart: unless-stopped
filebeat: # filebeat:
image: docker.elastic.co/beats/filebeat:${ELASTIC_VERSION:-7.9.1} # image: docker.elastic.co/beats/filebeat:${ELASTIC_VERSION:-7.9.1}
# https://github.com/docker/swarmkit/issues/1951 # # https://github.com/docker/swarmkit/issues/1951
hostname: "{{.Node.Hostname}}-filebeat" # hostname: "{{.Node.Hostname}}-filebeat"
# Need to override user so we can access the log files, and docker.sock # # Need to override user so we can access the log files, and docker.sock
user: root # user: root
configs: # configs:
- source: fb_config # - source: fb_config
target: /usr/share/filebeat/filebeat.yml # target: /usr/share/filebeat/filebeat.yml
volumes: # volumes:
- filebeat:/usr/share/filebeat/data # - filebeat:/usr/share/filebeat/data
- /var/run/docker.sock:/var/run/docker.sock # - /var/run/docker.sock:/var/run/docker.sock
# This is needed for filebeat to load container log path as specified in filebeat.yml # # This is needed for filebeat to load container log path as specified in filebeat.yml
- /var/lib/docker/containers/:/var/lib/docker/containers/:ro # - /var/lib/docker/containers/:/var/lib/docker/containers/:ro
# # This is needed for filebeat to load jenkins build log path as specified in filebeat.yml # # # This is needed for filebeat to load jenkins build log path as specified in filebeat.yml
# - /var/lib/docker/volumes/jenkins_home/_data/jobs/:/var/lib/docker/volumes/jenkins_home/_data/jobs/:ro # # - /var/lib/docker/volumes/jenkins_home/_data/jobs/:/var/lib/docker/volumes/jenkins_home/_data/jobs/:ro
# This is needed for filebeat to load logs for system and auth modules # # This is needed for filebeat to load logs for system and auth modules
- /var/log/:/var/log/:ro # - /var/log/:/var/log/:ro
# This is needed for filebeat to load logs for auditd module. you might have to install audit system # # This is needed for filebeat to load logs for auditd module. you might have to install audit system
# on ubuntu first (sudo apt-get install -y auditd audispd-plugins) # # on ubuntu first (sudo apt-get install -y auditd audispd-plugins)
- /var/log/audit/:/var/log/audit/:ro # - /var/log/audit/:/var/log/audit/:ro
environment: # environment:
- ELASTICSEARCH_HOST=${ELASTICSEARCH_HOST} # - ELASTICSEARCH_HOST=${ELASTICSEARCH_HOST}
- KIBANA_HOST=${KIBANA_HOST} # - KIBANA_HOST=${KIBANA_HOST}
- ELASTICSEARCH_USERNAME=${ELASTICSEARCH_USERNAME} # - ELASTICSEARCH_USERNAME=${ELASTICSEARCH_USERNAME}
- ELASTICSEARCH_PASSWORD=${ELASTICSEARCH_PASSWORD} # - ELASTICSEARCH_PASSWORD=${ELASTICSEARCH_PASSWORD}
# disable strict permission checks # # disable strict permission checks
command: ["--strict.perms=false"] # command: ["--strict.perms=false"]
volumes: # volumes:
filebeat: # filebeat:
networks: networks:
default: default:
external: external:
name: mistborn_default name: mistborn_default
configs: # configs:
fb_config: # fb_config:
file: /opt/mistborn_volumes/scirius/init/filebeat.docker.yml # file: /opt/mistborn_volumes/scirius/init/filebeat.docker.yml
Loading…
Cancel
Save