Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Introducing logs monitoring using Graylog2 #22

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Introducing logs monitoring using Graylog2 #22

wants to merge 11 commits into from

Conversation

ScreamZ
Copy link
Collaborator

@ScreamZ ScreamZ commented Jun 22, 2017

Implémentation de filebeats dans la stack afin d'envoyer les logs, il restera à implémenter NGINX un jour.

  • J'ai changé le symbole du varnish NCSA car c'était pas pratique, les X-location ID sont également splittés par des | on n'a donc pas un vrai caractère unique de séparation, j'ai mis ~.

Au chargement la configuration s'auto-load.
Il faudra penser a build les images

Sinon mon docker compose de test

    elasticsearch:
        container_name: graylog-elastic
        image: "elasticsearch:2"
        command: "elasticsearch -Des.cluster.name='graylog'"
    graylog:
        container_name: graylog-server
        image: 'graylog2/server:latest'
        environment:
            GRAYLOG_PASSWORD_SECRET: somepasswordpepper
            GRAYLOG_ROOT_PASSWORD_SHA2: 8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
            GRAYLOG_WEB_ENDPOINT_URI: http://127.0.0.1:9000/api
        depends_on:
            - mongo
            - elasticsearch
        ports:
            - "9000:9000"
    filebeats:
        container_name: graylog-filebeat
        image: filebeat-andreas
        depends_on:
            - graylog
            - elasticsearch
        volumes: 
            - ./config/graylog/filebeat:/mnt
            - ./logs:/app-logs

@ScreamZ ScreamZ requested review from brunoauger and supasteev0 June 22, 2017 17:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants