Skip to content

Logging

Mariusz Kumor edited this page Mar 10, 2017 · 3 revisions

Central logging using Docker Compose

When using docker-compose to launch Abixent Platform you can use ELK stack (Elasticsearch, Logstash and Kibana) to browse logs from all components.

Setting up

All components required to run ELK stack should be already running, as they are a part of docker-compose configuration.

You need to however initialize Kibana by opening http://localhost:5601 and choosing @timestamp field from a list.

Selecting Kibana timestamp field

If you encounter error with connecting to Elasticsearch (especially if you're running it on linux) please see this for potential solution.

Browsing

After all has been set up you can start browsing your logs. Select Discover from left panel and see logs collected from Abixen Platform components running as docker containers.

Kibana Discover interface

You can also choose only some fields - raw log messages are stored in messages field. Try to add it to list of selected fields and you will notice that only timestamp with raw log message is available.

Kibana - selecting message field

Looking up specific keyword is available using search bar where you specify field you want search (e.g. message) or skip it and it will search in all of available (including metadata fields describing containers).

Kibana - searching

Time ranges and refresh interval can be changed using options from upper right corner menu.

Kibana - selectin time ranges