filebeat output loki

filebeat official built not support output loki via grafana

config demo

# http
filebeat.inputs:
  - type: log
    enabled: true
    paths:
      - C:\Users\admin\Desktop\pic\*.log

output.loki:
  hosts: [ 'localhost:3100' ]

# grpc
filebeat.inputs:
  - type: log
    enabled: true
    paths:
      - C:\Users\admin\Desktop\pic\*.log

output.loki:
  hosts: [ 'localhost:9095' ]

GitHub

View Github