Sign inSign up

etki/graylog-server

By etki

Updated over 10 years ago

Graylog server wrapped in Docker

Image
0

2.0K

etki/graylog-server repository overview

Graylog server docker image

This repository contains docker image for Graylog server component.

Configuration

Graylog provides neat, 12-factorish way to configure application via environment variables, and every configuration option may be overriden by environmental variable with same name and GRAYLOG2_ prefix, so elasticsearch_shards can be overriden by GRAYLOG2_ELASTICSEARCH_SHARDS environment variable. The most important configuration options are listed in following table:

OptionDefault valueNote
is_mastertrueWhether this is node or master and is capable of processing cluster-wide tasks (it is implied that only one node in cluster may be master)
root_usernameadminDefault user login
root_password_sha2SHA-2 hash of password for default user. Calculated automatically (see environment variables)
root_emailDefault user email
root_timezoneUTC
rest_enable_corsfalseWhether to enable Cross-Origin Resource Sharing
rest_enable_gzipfalseWhether to enable gzip compression
plugin_dirpluginDirectory to store plugins, if you'll need any, most probably you're going to specify this dir as a persistent volume
elasticsearch_discovery_zen_ping_unicast_hostsList of hosts to check for Elasticsearch instances, please see $GRAYLOG2_ELASTICSEARCH_HOSTS lower
mongodb_urimongodb://localhost/graylog
transport_email_enabledfalse
transport_email_hostname
transport_email_port25
transport_email_use_authfalse
transport_email_use_tlsfalse
transport_email_use_ssltrue
transport_email_auth_username
transport_email_auth_password

In addition, this particular image provides extra environment variables:

VariableDefault valueExampleNote
GRAYLOG2_ROOT_PASSWORDbrutefulmah-super-passwrdAdmin password. Won't have any effect if GRAYLOG2_ROOT_PASSWORD_SHA2 is set
GRAYLOG2_PASSWORD_SECRETopenssl-generatedaaaabbbbcccdddd...Secret crypto value with length of at least 64 characters. Has to be the same value on all nodes
GRAYLOG2_JVM_HEAP_SIZE1g2gAmount of RAM dedicated for Java heap
GRAYLOG2_ELASTICSEARCH_HOSTS127.0.0.1:9300,192.168.0.1:9300A shortcut for elasticsearch_discovery_zen_ping_unicast_hosts configuration option

Please note that GRAYLOG2_MONGODB_URI and GRAYLOG2_ELASTICSEARCH_HOSTS are required to be set for server to operate (however, most probably you'll need to tune GRAYLOG2_ELASTICSEARCH_CLUSTER_NAME and other settings as well).

Please also note that you may require to expose more ports than are exposed now to allow network inputs.

Usage

docker run -p 80:80 -e GRAYLOG2_ELASTICSEARCH_HOSTS=172.17.0.1:9200 \
    -e GRAYLOG2_MONGODB_URI=mongodb://172.17.0.2:27017/test etki/graylog-server

Nobody forbids container linking, of course.

TODOs

  • More JVM options

  • Plugin directory creation

  • Plugin usage in detail

  • Is it really necessary to expose port 9350?

Tag summary

Content type

Image

Digest

sha256:87df7b323

Size

365.8 MB

Last updated

over 10 years ago

docker pull etki/graylog-server