We use filebeat to collect docker container logs under /var/lib/docker/containers/*/*.log
. At current, filebeat forwards logs to elastic directly and logstash might be integrated to do logging process work in the future. You can search logs from the kibana UI or call the elastic api directly.
Only tested on Ubuntu.
-
Setup the endpoint properly in the config file
.makerc/log
. -
Start the elastic server, kibana and nginx:
make start
- Start the filebeat on service node:
make setup-node && make start-node
Before running the filebeat, you need to install and configure the elastic server. Except Ubuntu, follow the installation instructions here for other operating systems.
- After a while, visit the localhost:5601 and you can search the logs.
No default index pattern. You must select or create one at the first time.
Dashboard ELK Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Dashboard ELK Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.