Replies: 1 comment 4 replies
-
Hi @Rawoosa, I recommend attaching a console:
type: console
inputs: [ "parser-bareos" ]
encoding:
codec: json
json:
pretty: true Also, vector tap is another helpful debugging tool to inspect what comes out of the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
OS: Rocky Linux 9.6
Vector: Docker, latest-alpine
Let's imagine we have a Bareos log file located at /var/log/bareos/bareos.log with 2 lines like this:
Line 1: 12-Sep 15:56 bareos-dir JobId 40: Version: 24.0.5~pre32.7c5f79a1e (14 August 2025) Red Hat Enterprise Linux release 9.6 (Plow)
Line 2: 12-Sep 15:56 bareos-dir JobId 40: Start Backup JobId 40, Job=DefaultBackup.2025-09-12_15.56.27_23
In vector.yaml we add a source section with this file:
After that we'd like to extract multiple fields in order to filter logs in VictoriaLogs. We do it using transform section, remap function and regex:
Finally, we sink the result into Vlogs using HTTP:
In result, Vector seems to sink only the message field from the input file and do not actually get required fileds using the parser:

I believe I've failed to correctly set up a parser and I require some help. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions