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

Docker compose installation results with ERROR StatusLogger File not found #2996

Closed
matfiz opened this issue Oct 27, 2016 · 3 comments
Closed

Comments

@matfiz
Copy link

matfiz commented Oct 27, 2016

I have installed the graylog stack using docker-compose configuration recommended in the docs:

version: '2'
services:
  mongo:
    image: "mongo:3"
    volumes:
      - /graylog/data/mongo:/data/db
  elasticsearch:
    image: "elasticsearch:2"
    command: "elasticsearch -Des.cluster.name='graylog'"
    volumes:
      - /graylog/data/elasticsearch:/usr/share/elasticsearch/data
  graylog:
    image: graylog2/server:2.1.0-3
    volumes:
      - /graylog/data/journal:/usr/share/graylog/data/journal
      - /graylog/config:/usr/share/graylog/data/config
    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"
      - "12201/udp:12201/udp"
      - "1514/udp:1514/udp"

After I docker-compose up, I see the graylog container exits with error:
ERROR StatusLogger File not found in file system or classpath: /usr/share/graylog/data/config/log4j2.xml

How can I generate this file? :)

Expected Behavior

After starting the docker composer, there should be no errors.

Current Behavior

After I docker-compose up, I see the graylog container exits with error:
ERROR StatusLogger File not found in file system or classpath: /usr/share/graylog/data/config/log4j2.xml

Possible Solution

Generate/provide link to log4j2.xml?

@joschi
Copy link
Contributor

joschi commented Oct 27, 2016

@matfiz You can download the log4j2.xml as described in the README on Docker Hub (see "Persist log data"): https://hub.docker.com/r/graylog2/server/

@joschi joschi closed this as completed Oct 27, 2016
@matfiz
Copy link
Author

matfiz commented Oct 27, 2016

@joschi thank you, sorry for not reading carefully enough!

@aparedero
Copy link

aparedero commented Feb 20, 2017

I had the same problem despite of following docs. I notice there are missing points at the beginning of each line:

   volumes:
      - ./graylog/data/journal:/usr/share/graylog/data/journal
      - ./graylog/config:/usr/share/graylog/data/config

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

3 participants