mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-05 01:01:09 +01:00
7e60afb6fc
This commit allows to ingest logs with journald format. https://www.freedesktop.org/software/systemd/man/latest/systemd-journal-remote.service.html related issue: https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4618
1.7 KiB
1.7 KiB
weight | title | disableToc | menu | aliases | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
10 | Journald setup | true |
|
|
On a client site which should already have journald please install additionally systemd-journal-upload and edit /etc/systemd/journal-upload.conf
and set URL
to VictoriaLogs endpoint:
[Upload]
URL=http://localhost:9428/insert/journald
Substitute the localhost:9428
address inside endpoints
section with the real TCP address of VictoriaLogs.
Since neither HTTP query arguments nor HTTP headers are configurable on systemd-journal-upload, stream fields and other params can be configured on VictoriaLogs using command-line flags:
journald.streamFields
- configures stream fields for ingested data. Here's a list of supported Journald fieldsjournald.ignoreFields
- configures Journald fields, that should be ignored.journald.tenantID
- configures TenantID for ingested data.journald.timeField
- configures time field for ingested data.
See also: