Hi,
I am trying to configure fluentbit that comes with GKE with loki official helm chart. I am unable to push logs to loki.
I am using below configmap to push logs to loki.
apiVersion: v1
kind: ConfigMap
metadata:
name: fluent-bit-config
namespace: kube-system
data:
fluent-bit.conf: |
[SERVICE]
flush 1
log_level info
[INPUT]
name tail
path /etc/data/data.log
tag log_generator
[OUTPUT]
Name stdout
Match *
[OUTPUT]
# for sending logs to local Loki instance
name loki
match *
host loki-gateway.monitoring
port 80
labels job=fluentbit, $sub['stream']
I have added below lines to refer configmap and volume mounts.
mountPath: /fluent-bit/etc/fluent-bit.conf
name: fluent-bit-config
configMap:
defaultMode: 420
name: fluent-bit-config
name: fluent-bit-config