Skip to content
Kubernetes deployment related assets
Shell Smarty Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Logrange k8s installation

Logrange k8s installation requires Helm to be installed. The installation can be done either via script or manually. There are 4 key components which are installed during the installation:

  • lr-aggregator: streaming database where all the logs are stored/aggregated after they are gathered from the nodes.

  • lr-collector: logs collecting agent, runs on every node, collects logs from all the containers and sends them to the aggregator.

  • lr-forwarder: logs forwarding agent, used if you need to forward logs from your k8s cluster to some 3rd party system/application.

  • lr-configs: all the configurations/settings on which other components rely on.

The components come preconfigured for k8s cluster logs gathering, so no special configuration is needed, until you have some very custom k8s installation and/or requirements.

After key components installation is done, install our CLI tool, to make different kind of requests using Logrange Query Language (LQL), which is powerful and very SQL like!



$ curl -s | bash -s -- --version v0.1.43


$ curl -s | bash -s -- --uninstall

Note: Script uninstall works only if you did "script install" otherwise you should do uninstall manually.



$ helm repo add logrange
$ helm repo update
$ helm install logrange/lr-configs 
$ helm install logrange/lr-aggregator
$ helm install logrange/lr-collector
$ helm install logrange/lr-forwarder


$ helm list
$ helm delete <release name>

Logrange CLI installation

$ curl -s | bash -s -- lr -d /usr/local/bin
$ lr shell --server-addr=lr-aggregator.kube-system.svc.cluster.local:9966

Log forwarding to 3rd party system

Execute steps in order:

  1. Open lr-forwarder ConfigMap for edit:
$ kubectl edit configmap lr-forwarder --namespace=kube-system
  1. Insert into Workers array, one or more blocks like shown below (substitute values in brackets):
  "Name": "<NAME>",                          // name of your forwarder, e.g. "forwarder1"
  "Pipe": {
    "Name": "logrange.pipe=__default__",
  "Sink": {
    "Type": "syslog",                        // for now only "syslog" is supported
    "Params": {
      "Protocol": "tcp",                     // "tcp", "udp" or "tls" (requires non-empty "TlsCAFile")
      "RemoteAddr": "<REMOTE_SYSLOG>:514",   // syslog server hostname/ip to where logs to be forwarded
      "TlsCAFile": "",                       // required if "Protocol" is "tls"
      "MessageSchema" : {
        "Facility": "local6",
        "Severity": "info",
        "Hostname": "{vars:pod}",
        "Tags": "{vars}",
        "Msg": "{msg}"
You can’t perform that action at this time.