VictoriaLogs is feature rich, which means at this point, I know very little about it. I do know that the original syslog-ng configuration I supplied in Getting Nginx logs into Victoria-Logs is now less complicated. With the help of duck.ai, I managed to reduce it. Now it’s sending the json without running it through a parser. In this post: FreeBSD 15.1 syslog-ng-4.11.0_2 victoria-logs-1.50.0_2 The original configuration The original configuration from the above post looked like this: parser p_json { # Read the JSON from $MESSAGE because flags(no-parse) leaves $MSG empty json-parser(prefix(".json.")); }; source s_nginx_json { file("/var/log/nginx/access_json.log" flags(no-parse)); }; destination d_victorialogs_json { http( url("https://logs.int.unixathome.org:9428/insert/jsonline") method("POST") headers("Content-Type: application/x-ndjson") body("{\"_msg\":\"${.json._msg}\",\"_time\":\"${.json._time}\",\"_stream.app\":\"${.json._stream.app}\",\"status\":\"${.json.status}\",\"remote_add…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.