Loki is a log aggregation system inspired by Prometheus. It does not index the contents of the logs, but rather a set of labels for each log stream. Compared to other log aggregation systems, Loki: - does not do full text indexing on logs - indexes and groups log streams using the same labels as Prometheus, allowing to seamlessly switch between metrics and logs using the same labels - has native support in Grafana A Loki-based logging stack consists of 3 components: - promtail is the agent, responsible for gathering logs and sending them to Loki - loki is the main server, responsible for storing logs and processing queries - Grafana for querying and displaying the logs Additionally 2 other components are provided: - logcli to run LoqQL queries against a Loki server - loki-canary to audit the log capturing performance of Loki
15 lines
248 B
Bash
15 lines
248 B
Bash
#!/bin/ksh
|
|
#
|
|
# $OpenBSD: loki.rc,v 1.1.1.1 2020/03/07 10:12:55 sthen Exp $
|
|
|
|
daemon="${TRUEPREFIX}/bin/loki"
|
|
daemon_user="_loki"
|
|
daemon_flags="-config.file ${SYSCONFDIR}/loki/loki-config.yaml"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
rc_bg=YES
|
|
rc_reload=NO
|
|
|
|
rc_cmd $1
|