Bring Your Own Logging
Pipekit BYO Logging Backend lets you collect and view workflow logs in a self-hosted Loki backend. This allows you to have the full logging experience managed by Pipekit without having Pipekit ever ac
Last updated
apiVersion: v1
kind: ConfigMap
metadata:
name: fluentbit-config
namespace: <<REPLACE_WITH_NAMESPACE>>
data:
fluent-bit.conf: |
[SERVICE]
Flush 1
Log_Level info
Daemon off
Parsers_File parsers.conf
@INCLUDE input.conf
@INCLUDE output.conf
input.conf: |
[INPUT]
Name tail
Parser json
Path /tmp/*.log # set to whatever path your logs will be stored in the filesystem
Mem_Buf_Limit 100MB
Skip_Long_Lines On
Refresh_Interval 5
Rotate_Wait 15
output.conf: |
[OUTPUT]
name loki
match *
host <<REPLACE_WITH_LOKI_HOST>>
port <<REPLACE_WITH_LOKI_PORT>>
labels orgUUID=$orgUUID, pipeUUID=$pipeUUID, runUUID=$runUUID, podName=$podName, containerName=$containerName, nodeId=$nodeId
tenant_id_key orgUUID # this line is only needed if you're doing multi-tenancy
remove_keys orgUUID, pipeUUID, runUUID, podName, containerName, createdAt, nodeId
line_format key_value # must be set to key_value, otherwise character escapes will appear
drop_single_key on
parsers.conf: |
[PARSER]
Name json
Format json