Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 2.45 KB

README.md

File metadata and controls

56 lines (37 loc) · 2.45 KB

k8s-light-logs

A simple logging stack for kubernetes cluster collecting logs from multiple sources:

  • container logs
  • systemd services
  • k8s events

k8s-victoria-otel-logstack

It packs and delivers the logs in opentelemetry logs format enriching the logs with source attributes following the otel semantic convention.

Contents:

This repo contains an example of a k8s logging stack, which is lightweight but yet performant. There are two key guiding principles in this example:

The example here illustrates the deployment of log shippers, pipelines and backend using respective projects guidelines and brings the necessary additional resources and configurations. Optional components such as prometheus or ingress-controller may be installed to expose the full set of the supported scenarios.

The purpose of the repo, as of today, is to quickly provide a logging stack for k8s clusters that later can be extended to serve production environments. For example at the moment the repo does not provide, out of the box, end to end tls encryption configurations. By default, the ingress endpoints and the service monitoring are not exposed . Those shall be added later in specific deployments.

Components

This repo illustrates the deployment of:

And optionally:

To setup the stack:

  1. Deploy single instance victoria-logs
  2. Deploy fluent operator and fluent-bit
  3. Optionally deploy the otel-collector

Or simply run

./setup.sh