Hello!

I have problems configuring the STMP settings (or any settings) in my 
graylog docker container.

This is the setup: 
CentOS Linux release 7.2.1511 (Core) 
Docker version 1.10.3, build cb079f6-unsupported

I installed graylog after the instruction on 
http://docs.graylog.org/en/2.1/pages/installation/docker.html :


*docker run --name some-mongo -d mongo:3*


*docker run --name some-elasticsearch -d elasticsearch:2 elasticsearch 
-Des.cluster.name="graylog"*

*docker run --link some-mongo:mongo --name graylog --link 
some-elasticsearch:elasticsearch -p 9000:9000 -p 12201:12201/udp -e 
GRAYLOG_PASSWORD_SECRET=$SECRET -e GRAYLOG_ROOT_PASSWORD_SHA2=$PASSWORD -e 
GRAYLOG_WEB_ENDPOINT_URI="http://<ip>:9000/api" -d graylog2/server*
For the first tests it worked fine, although there is a notification:

*The configuration for the email transport subsystem has shown to be missing or 
invalid. Please check the related section of your Graylog server configuration 
file. This is the detailed error message: Email transport is not enabled in 
server configuration file!*
Consequently, the sending of a test alert failed.

So I tried multiple ways of configure the server:

1.Created /etc/graylog/server/server.conf using the example in 
/usr/share/graylog/data/config (although /etc/graylog is already missing in the 
container)
  and changed the following settings: 








*transport_email_enabled = truetransport_email_hostname = 
<hostname>transport_email_port = 587transport_email_use_auth = 
truetransport_email_use_tls = truetransport_email_use_ssl = 
truetransport_email_auth_username = <email-adress>transport_email_auth_password 
= <secret>*

2. Configured graylog via the keywords at docker run: 





*docker run --link some-mongo:mongo --name graylog --link 
some-elasticsearch:elasticsearch -p 9000:9000 -p 12201:12201/udp -e 
GRAYLOG_PASSWORD_SECRET=$SECRET -e GRAYLOG_ROOT_PASSWORD_SHA2=$PASSWORD -e 
GRAYLOG_WEB_ENDPOINT_URI="http://<ip>:9000/api" -e 
GRAYLOG_TRANSPORT_EMAIL_HOSTNAME=<url> -e 
GRAYLOG_TRANSPORT_EMAIL_USE_TLS="true" -e 
GRAYLOG_TRANSPORT_EMAIL_USE_SSL="true" -e 
GRAYLOG_TRANSPORT_EMAIL_USE_AUTH="true" -e GRAYLOG_TRANSPORT_EMAIL_PORT=587 -e 
GRAYLOG_TRANSPORT_EMAIL_AUTH_USERNAME=<email-adress>-e 
GRAYLOG_TRANSPORT_EMAIL_AUTH_PASSWORD=<secret> -e 
GRAYLOG_TRANSPORT_EMAIL_ENABLED="true" -e GRAYLOG_TIMEZONE=Europe/Berlin -d 
graylog2/server*

 Tried this way also:

*docker run --link some-mongo:mongo --name graylog --link 
some-elasticsearch:elasticsearch -p 9000:9000 -p 12201:12201/udp -e 
GRAYLOG_PASSWORD_SECRET=$SECRET -e GRAYLOG_ROOT_PASSWORD_SHA2=$PASSWORD -e 
GRAYLOG_WEB_ENDPOINT_URI="http://<ip>:9000/api" -e 
GRAYLOG_SMTP_SERVER="<hostname> --port=587 --user=<email-adress> 
--password=<secret>"  -d graylog2/serve*r

But none of them had impact (although the server started)

3. Installing docker-compose in order to create the three containers from 
scratch did not work because our python system packages conflict with 
docker-compose dependencies.


What have I done wrong? Did I miss anything? Any comment is very welcome!
Thanks in advance!
Hannes

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/942743e4-7d57-451d-a15f-6f191e4e50aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to