Skip to content

Help request logging to Loki to view in Grafana #74

@simonreye-4tel

Description

@simonreye-4tel

I've basically copied the logback example configuration file to send Java logs to fluentd. I then want to forward the logs on to Loki. My fluentd configuration is:

<source>
  @type forward
  port 24224
</source>

<match **>
  @type loki
  url "http://loki:3100"
  extra_labels {"env":"dev"}
  <buffer>
    flush_interval 10s
    flush_at_shutdown true
  </buffer>
  buffer_chunk_limit 1m
</match>

This sort of works but the only label that is visible for querying in Grafana is "env". I would like to see level, logger, time etc. Can someone help me out?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions