Hi,
i am trying to use alloy to sent the systemd jounal logs to the grafana cloud stack.
However nothing is sent and i currently cannot find issue. Here the relevant config part from alloy. Perhaps one of you can give me hint?
loki.write "grafana_cloud_loki" {
endpoint {
url = "{{ vault_grafana_cloud_url}}"
basic_auth {
username = "{{ vault_grafana_cloud_loki_user }}"
password = "{{ vault_grafana_cloud_loki_passwd }}"
}
}
}
loki.source.journal "logs_integrations_integrations_node_exporter_journal_scrape" {
max_age = "24h0m0s"
relabel_rules = discovery.relabel.logs_integrations_integrations_node_exporter_journal_scrape.rules
forward_to = [loki.write.grafana_cloud_loki.receiver]
}
discovery.relabel "logs_integrations_integrations_node_exporter_journal_scrape" {
targets
rule {
source_labels = ["__journal__systemd_unit"]
target_label = "unit"
rule {
source_labels = ["__journal__boot_id"]
target_label = "boot_id"
rule {
source_labels = ["__journal__transport"]
target_label = "transport"
rule {
source_labels = ["__journal_priority_keyword"]
target_label = "level"
}
}