victorialogs-datasource icon indicating copy to clipboard operation
victorialogs-datasource copied to clipboard

Autodetect logging level

Open tropnikovvl opened this issue 1 year ago • 2 comments

I rely on Loki's experience in this matter.

I send the same test logs to Loki and VMLogs and see that Loki automatically determines the log level, which allows me to make various filters by this field (for example, if these are not json logs).

Loki

Image

VMLogs

Image

tropnikovvl avatar Feb 25 '25 10:02 tropnikovvl

Hi @tropnikovvl ! This detection was implement on the db side please check this PR

I will create a separate issue in the victoriametrics repository for such improvement

dmitryk-dk avatar Mar 07 '25 15:03 dmitryk-dk

FYI: Auto-detection is problematic for the Logs volume chart because it’s built via /select/logsql/hits. That endpoint only groups by fields explicitly passed via field=..., so without a known level key you only get total volume.

Loori-R avatar Aug 30 '25 18:08 Loori-R