Skip to content

zhigui-projects/Leizu-elk

Repository files navigation

Dashboard-ELK

img

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.

Quick start

Only tested on Ubuntu.

  1. Setup the endpoint properly in the config file .makerc/log.

  2. Start the elastic server, kibana and nginx:

make start
  1. 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.

  1. 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.

License

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/.