Does anyone know if there is a way to send syslog-ng logs using an http destination, directly to loki without the use of promtail. I have everything working great with promtail, but would like to skip the middle-man. I’ve tried the following config with and without the commented lines, but no success. Thanks for any help you can give.
destination d_loki {
http(
url(“https://lokiserver.domain.com:3100/loki/api/v1/push”)
tls(peer-verify(no))
method(“POST”)
user-agent(“syslog-ng User Agent”)
/# body(‘$(format-json --scope rfc5424 --scope dot-nv-pairs
/# --rekey .* --shift 1 --scope nv-pairs
/# --exclude DATE @t=${ISODATE} @m=${MESSAGE})’)
);
};
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.