VictoriaMetrics/app
Zhu Jiekun e113a40142
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>

(cherry picked from commit 3aeb1b96a2)
2024-11-07 13:00:18 +01:00
..
victoria-logs app/vlstorage: add support for forced merge via /internal/force_merge HTTP endpoint 2024-10-15 11:49:31 +02:00
vlinsert app/vlinisert/loki: properly parse json logs with structured metadata 2024-11-07 13:00:18 +01:00
vlogscli app/vlogscli: print hint on how to see available commands when starting vlogscli 2024-10-30 09:52:51 +01:00
vlogsgenerator all: consistently use stringsutil.JSONString() for formatting JSON strings with fmt.* functions instead of using "%q" formatter 2024-07-17 14:01:37 +02:00
vlselect app/{vmselect,vlselect}: run make vmui-update vmui-logs-update 2024-11-04 10:59:58 -03:00
vlstorage lib/flagutil: rename Duration to RetentionDuration (#7284) 2024-10-17 11:18:45 -03:00
vmagent vmagent: fix type of command-line flag -streamAggr.dedupInterval (#7081) 2024-10-17 11:11:46 -03:00
vmalert vmalert: integrate with victorialogs (#7255) 2024-10-29 16:32:00 +01:00
vmalert-tool app/*/multiarch: return back empty value for TARGETARCH 2024-09-06 18:15:22 +02:00
vmauth app/*/multiarch: return back empty value for TARGETARCH 2024-09-06 18:15:22 +02:00
vmbackup app/*/multiarch: return back empty value for TARGETARCH 2024-09-06 18:15:22 +02:00
vmbackupmanager all: replace old https://docs.victoriametrics.com/vmbackupmanager.html url with the new one - https://docs.victoriametrics.com/vmbackupmanager/ 2024-04-18 02:04:39 +02:00
vmctl vmctl: fixed import duplicate data when query result contains multiple series (#7330) 2024-11-06 13:58:19 +01:00
vmgateway all: replace old https://docs.victoriametrics.com/vmgateway.html url with the new one - https://docs.victoriametrics.com/vmgateway/ 2024-04-18 02:08:53 +02:00
vminsert lib/protoparser/influx: enable batch processing by default (#7165) 2024-10-15 11:51:48 +02:00
vmrestore app/*/multiarch: return back empty value for TARGETARCH 2024-09-06 18:15:22 +02:00
vmselect promql: exclude limit_offset from default by metric name sorting (#7402) 2024-11-06 15:27:29 +01:00
vmstorage Revert "lib/mergeset: add sparse indexdb cache (#7269)" 2024-11-04 10:33:22 -03:00
vmui vmui: fix the display of the link to vmalert (#7380) 2024-10-31 14:11:09 +01:00