Skip to content

Commit 62ca8d5

Browse files
committed
[4.4][loki] Adds an example config to the syslog-ng loki output
1 parent b3576a2 commit 62ca8d5

File tree

1 file changed

+18
-0
lines changed
  • content/docs/configuration/plugins/syslog-ng-outputs

1 file changed

+18
-0
lines changed

content/docs/configuration/plugins/syslog-ng-outputs/loki.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ generated_file: true
66

77
Sends messages to Grafana Loki over gRPC, based on the [Loki destination of AxoSyslog Core](https://axoflow.com/docs/axosyslog-core/chapter-destinations/syslog-ng-with-loki/).
88

9+
For example:
10+
11+
{{< highlight yaml >}}
12+
apiVersion: logging.banzaicloud.io/v1beta1
13+
kind: SyslogNGOutput
14+
metadata:
15+
name: loki
16+
spec:
17+
loki:
18+
url: "loki.loki:8000"
19+
labels:
20+
"app": "$PROGRAM"
21+
"host": "$HOST"
22+
workers: 16
23+
batch-timeout: 10000
24+
batch-lines: 1000
25+
{{< /highlight >}}
26+
927
## Configuration
1028

1129
### labels (filter.ArrowMap, optional) {#lokioutput-labels}

0 commit comments

Comments
 (0)