grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.99k stars 3.46k forks source link

Logstash Plugin doesn't support string templates #14552

Open gianvetter opened 1 month ago

gianvetter commented 1 month ago

Describe the bug When trying to use Logstash fileds as tenant_id for the loki output plugin, the plugin will not replace the values with the field values.

To Reproduce Steps to reproduce the behavior:

  1. Install Logstash with the Loki Plugin
  2. Edit Output config from Logstash tenant_id => "%{[fields][bi_loki_tenant]}"
  3. Start Logstash

Expected behavior The Plugin will replace the %{[fields][bi_loki_tenant]} with the correct values.

Environment:

Fix I have made already a pull request with the fix https://github.com/grafana/loki/pull/14512

yehlo commented 1 month ago

+1