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.
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.