Open dmitrievav opened 3 months ago
Discovered this issue whilst looking for the same solution.
@dmitrievav for the current machine the boot ID is known at boot, so as a hacky work around you could use ExecStartPost= in the systemd unit for any nested machine's that get booted following that, this could populate your promtail .yaml with correct values
Promtail is now considered “feature complete” and will be in a maintenance mode. Requests for new features should be made against Grafana Alloy, Grafana Labs’ distribution of the OpenTelemetry Collector.
The problem description
According to documentation https://grafana.com/docs/loki/latest/send-data/promtail/configuration/#journal
journal settings block has a parameter
path
of type string which currently does not support wildcards.On EKS node
/var/log/journal
directory contains subfolders to organize and store log data in a structured manner. Each subfolder typically corresponds to a unique identifier for a boot session or a specific machine ID, allowing for efficient log management and retrieval.Name of subfolder cannot be known in advance and that is why configuring journal target without wildcard is impossible.
Possible solution
That would be necessary to allow parameter
path
to accept wildcards as in example below: