This docker-compose.yml
runs all the required processes for a Graylog setup on multiple docker containers.
The following processes are run in their own docker containers
- mongodb
- elasticsearch
- graylog
This setup assumes you already have docker-compose and docker installed.
git clone git@github.com:pecigonzalo/graylog-compose.git
cd graylog-compose
docker-compose build
docker-compose up
Open https://localhost:9443/ and use the login. (It may take a minute for the graylog server to come online)
username: admin
password: password
Then go to the Content Packs page, upload the provided content pack, and then click "Apply content".
You can now go to the Inputs page and see that the Docker GELF input has been entered to consume logspout mesages from Docker (using the GELF module).
Go to the Streams page to see the example streams that have been created. Clock on each one to see past messages.
[Hint: Open an incognito window and enter an invalid password in the Graylog login page. This will generate some content for you to see in your streams and dashboard.]
Go to the Dashboards page to see an example dashboard with graphs based on the 2 preconfigured streams.
Go to the Graylog Plugin page to see available plugins. Simply drop them in the plugin/
directory in the project, and they'll be loaded when you restart Graylog.
Go to the Graylog API-Explorer http://localhost:12900/api-browser From here, you can play around with their swagger api explorer.
MIT License