Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help request logging to Loki to view in Grafana #74

Open
simonreye-4tel opened this issue Jun 14, 2024 · 0 comments
Open

Help request logging to Loki to view in Grafana #74

simonreye-4tel opened this issue Jun 14, 2024 · 0 comments

Comments

@simonreye-4tel
Copy link

simonreye-4tel commented Jun 14, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant