VictoriaMetrics/app/vlinsert
Zhu Jiekun 3aeb1b96a2
app/vlinisert/loki: properly parse json logs with structured metadata
Loki protocol supports optional `metadata` object for each ingested line. It's added as 3rd field at the (ts,msg,metadata) tuple. Previously,  loki request json parsers rejected log line if tuple size != 2.

This commit allows optional tuple field. It parses it as json object and adds it as log metadata fields to the  log message stream.


related issue:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7431

---------
Co-authored-by: f41gh7 <nik@victoriametrics.com>
2024-11-06 17:25:05 +01:00
..
datadog vlinsert: support datadog logs 2024-11-05 16:52:35 +01:00
elasticsearch app/vlinsert: allow specifying comma-separated list of fields containing log message via _msg_field query arg and VL-Msg-Field HTTP request header 2024-10-30 14:17:33 +01:00
insertutils app/vlinsert: implement the ability to add extra fields to the ingested logs 2024-11-01 20:06:17 +01:00
journald app/vlinsert: allow specifying comma-separated list of fields containing log message via _msg_field query arg and VL-Msg-Field HTTP request header 2024-10-30 14:17:33 +01:00
jsonline app/vlinsert: typo fix after 16ee470da6 2024-10-30 17:59:49 +01:00
loki app/vlinisert/loki: properly parse json logs with structured metadata 2024-11-06 17:25:05 +01:00
opentelemetry follow-up after 01430a155c 2024-09-04 15:36:34 +02:00
syslog app/vlinsert: allow specifying comma-separated list of fields containing log message via _msg_field query arg and VL-Msg-Field HTTP request header 2024-10-30 14:17:33 +01:00
main.go vlinsert: support datadog logs 2024-11-05 16:52:35 +01:00