GithubHelp home page GithubHelp logo

logging-service-skeleton's Introduction

Logging Service Skeleton

Provides a semi-configured ELK stack for receiving logs to Kibana. This service is intended to be used with data-service.

Getting started

Create a new repository from the logging-skeleton (easily done from GitHub), or checkout a detached HEAD from the main repo; or checkout and then remove the .git folder.

Edit the .env file to set your preferred docker-compose prefix.

Replace the contents of config/docker/filebeat/config/service_list with a newline delimited list of the docker-compose service names you want dashboards for

The project is pre-configured to capture all stdout and stderr from containers running on the same docker host. So ensure that any containers you want logs for are using stdout/err. An example monolog.yaml

If you are using Traefik the compose file has labels for kibana.example.dev

Once the services are started navigating to Dashboards dashboard icon kibana.example.dev/app/kibana#/dashboards should give you a list matching those configured in the service list

Log tailing

The logs section Logs icon provides a real-time stream of the incoming logs from all services. It can be filted to a specific docker service with the search: docker.container.labels.com_docker_compose_service: "SERVICENAME"

Discovery

This service is setup to expose Kibana via the data-service traefik instance. Be sure to update the traefik configuration to reflect your setup.

If you are using somnambulist/project-manager be sure to register the logging service in your project config so that it can be started/stopped, inspected the same as any other managed project.

logging-service-skeleton's People

Contributors

dave-redfern avatar likewarster avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.