Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1271032

Bug#1121114: rsyslog: please build generic HTTP support

From Josselin Mouette <joss@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1121114: rsyslog: please build generic HTTP support
Date 2025-11-21 10:00 +0100
Message-ID <LTv9L-eALJ-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Package: rsyslog
Version: 8.2504.0-1
Severity: wishlist
Tags: patch

Hi,

I’ve been having to deal with relaying logs to a loki server.
This works nicely when enabling generic http support.

Sample configuration:

template(name="loki" type="string" string="{\"stream\":{\"host\":\"%HOSTNAME:::json%\",\"facility\":\"%syslogfacility-text:::json%\",\"priority\":\"%syslogpriority-text:::json%\",\"syslogtag\":\"%syslogtag:::json%\"},\"values\": [[ \"%timegenerated:::date-unixtimestamp%000000000\", \"%msg:::json%\" ]]}")
module(load="omhttp")
action(
    name="loki"
    type="omhttp"
    useHttps="on"
    server="mylokiserver"
    uid="login"
    pwd="verysecret"
    checkpath="ready"
    restpath="loki/api/v1/push"
    template="loki"
    batch="on"
    batch.format="lokirest"
    batch.maxsize="1000"
)


-- 
 .''`.      Josselin Mouette
: :' :
`. `'
  `-

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1121114: rsyslog: please build generic HTTP support Josselin Mouette <joss@debian.org> - 2025-11-21 10:00 +0100

csiph-web