Log analysis

This chapter describes the logs available with the Quobis Communication Platform and explains how to access and view them. It also explains the relationship between logs and system events. In order to get logs form the pods deployed into the Kubernetes cluster, we use the following command:

1 $ kubectl logs -f $Service-name > log-$servicename.log

On the other hand, there is a Loki service available that is integrated into Grafana for a better log collection experience.

_images/grafana_5.png

Log view and inspection with Loki tool within Grafana

We can find logs by string in order to trace an event or make troubleshooting easier.

_images/grafana_6.png

Example of searching and filtering

Log levels

Each log message has an associated log level that gives a rough guide to the importance and urgency of the message. These are the available log levels in the platform, from more severe to less severe:

Available log levels

Level name

Level description

‘error’

Error events of considerable importance that will prevent normal program execution, but might still allow the application to continue running.

‘warning’

Potentially harmful situations of interest to end users or system managers that indicate potential problems.

‘info’

Informational messages that might make sense to end users and system administrators, and highlight the progress of the application.

‘verbose’

Informational messages with more detailed information

‘debug’

Information broadly interesting to developers, might include minor (recoverable) failures and issues indicating potential performance problems.

‘silly’

The most detailed log messages, may contain sensitive application data.

Each service can have a different log level, the default configuration is as follows:

Default log levels

Service name

Log level

audiomixer

info

database-mongo

info

erebus

silly

kapi

info

keycloack

debug

kitter

silly

message-broker

info

mongodb-exporter

error

mongodb-kubernetes-operator

debug

nfs-client-provisioner

info

nginx

debug

postgresql

warning

qss

debug

recording

warning

sfu-dispatcher

debug

sfu-wrapper

debug

sfu

info

sip-proxy

info

sip-proxy-database

warning

sippo-exporter

info

sippo-maintainer

info

sippo-server

debug

sippo-storage

warning

teal

warning

turn-server

warning

xmpp-server

debug