Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Configure fluentbit with loki

Hi, I am trying to configure inbuilt fluentbit offered with GKE with loki for logs. 
I am trying this approach to save resources as fluentbit is already installed so no need to configure promtail if it can be used.

Solved Solved
0 2 645
1 ACCEPTED SOLUTION

This cannot be achieved with fluentbit offered by GCP, you can setup a new fluentbit.

View solution in original post

2 REPLIES 2

I am using below configmap for 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
port 80
labels job=fluentbit, $sub['stream']
```

This cannot be achieved with fluentbit offered by GCP, you can setup a new fluentbit.

Top Solution Authors