Cannot get web admin to work


#1

Hi,

Trying graylog enterprise using the docker images but the web interface wont work. I can nc or curl to the correct IP but I can see it is trying the docker bind address.

192.168.210.6 is the IP address of the Centos 7 machine I am starting docker on.

#docker-comose.yml
    version: '2'
    services:
      # MongoDB: https://hub.docker.com/_/mongo/
      mongo:
        image: mongo:3
        volumes:
          - mongo_data:/data/db
      # Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/5.5/docker.html
      elasticsearch:
        image: docker.elastic.co/elasticsearch/elasticsearch:5.6.12
        volumes:
          - es_data:/usr/share/elasticsearch/data
        environment:
          - http.host=0.0.0.0
          - transport.host=localhost
          - network.host=0.0.0.0
          # Disable X-Pack security: https://www.elastic.co/guide/en/elasticsearch/reference/5.5/security-settings.html#general-security-settings
          - xpack.security.enabled=false
          - xpack.watcher.enabled=false
          - xpack.monitoring.enabled=false
          - xpack.security.audit.enabled=false
          - xpack.ml.enabled=false
          - xpack.graph.enabled=false
          - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
        ulimits:
          memlock:
            soft: -1
            hard: -1
        mem_limit: 1g  
      # Graylog: https://hub.docker.com/r/graylog/graylog/
      graylog:
        image: graylog/graylog:3.0
        #network_mode: bridge
        volumes:
          - /opt/docker/graylog/graylog/data/journal:/usr/share/graylog/data/journal
          #- /opt/docker/graylog/graylog/config:/usr/share/graylog/data/config      
        environment:
          - GRAYLOG_WEB_ENDPOINT_URI=http://192.168.210.6:9000/api/   
          - GRAYLOG_REST_TRANSPORT_URI=http://192.168.210.6:9000      
        links:
          - mongo
          - elasticsearch
        ports:
          # Graylog web interface and REST API
          - 9000:9000
          # Syslog TCP
          - 514:514
          # Syslog UDP
          - 514:514/udp
          # GELF TCP
          - 12201:12201
          # GELF UDP
          - 12201:12201/udp
    # Volumes for persisting data, see https://docs.docker.com/engine/admin/volumes/volumes/
    volumes:
      mongo_data:
        driver: local
      es_data:
        driver: local
      graylog_journal:
        driver: local

curl -l http://192.168.210.6:9000

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="robots" content="noindex, nofollow">
    <meta charset="UTF-8">
    <title>Graylog Web Interface</title>
    <link rel="shortcut icon" href="http://172.19.0.4:9000/assets/favicon.png">

  </head>
  <body>
    <script src="http://172.19.0.4:9000/config.js"></script>

    <script src="http://172.19.0.4:9000/assets/vendor.3a39c01292ce2ef4ffed.js"></script>

    <script src="http://172.19.0.4:9000/assets/polyfill.911fcb4337d67c175fec.js"></script>

    <script src="http://172.19.0.4:9000/assets/builtins.911fcb4337d67c175fec.js"></script>

    <script src="http://172.19.0.4:9000/assets/plugin/org.graylog.plugins.threatintel.ThreatIntelPlugin/plugin.org.graylog.plugins.threatintel.ThreatIntelPlugin.8b790b2249be29b14101.js"></script>

    <script src="http://172.19.0.4:9000/assets/plugin/org.graylog.plugins.collector.CollectorPlugin/plugin.org.graylog.plugins.collector.CollectorPlugin.fe849445e7e2ab2d2bbe.js"></script>

    <script src="http://172.19.0.4:9000/assets/plugin/org.graylog.aws.AWSPlugin/plugin.org.graylog.aws.AWSPlugin.5a135f262866542ed363.js"></script>

    <script src="http://172.19.0.4:9000/assets/app.911fcb4337d67c175fec.js"></script>

  </body>
</html>

Cannot access docker graylog web
(Jan Doberstein) #2

two issues I can spot instand:

  1. you use the Image: graylog/graylog:3.0 what is not present ( https://hub.docker.com/r/graylog/graylog/tags/ )
    1.1 only 3.0.0-alpha.4-1 is given
  2. Graylog 3.0 is alpha AND has changed configuration options compared to 2.x
    2.1 See 3.0 Documentation on that: http://docs.graylog.org/en/3.0/pages/configuration/server.conf.html?#web-rest-api

In addition I would no use the 3.0 alpha build for production - only for testing. 2.4.6 is the current stable release at the time of writing this and you can use the tag 2.4 on from docker hub.


#3

ah ok will start again thanks.


(system) closed #4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.