Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1271032 > unrolled thread
| Started by | Josselin Mouette <joss@debian.org> |
|---|---|
| First post | 2025-11-21 10:00 +0100 |
| Last post | 2025-11-21 10:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.debian.bugs.dist
Bug#1121114: rsyslog: please build generic HTTP support Josselin Mouette <joss@debian.org> - 2025-11-21 10:00 +0100
| From | Josselin Mouette <joss@debian.org> |
|---|---|
| Date | 2025-11-21 10:00 +0100 |
| Subject | Bug#1121114: rsyslog: please build generic HTTP support |
| Message-ID | <LTv9L-eALJ-11@gated-at.bofh.it> |
[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 top | Article view | linux.debian.bugs.dist
csiph-web