160 days ago · Tech · hide · Fediverse post

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…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town