2 hours ago · Tech · 0 comments

My goal today: get nginx logs into Victoria-Logs. I’ve already gotten Victoria-Logs running on FreeBSD and replaced syslog with syslog-ng to get TLS Also, the Adding an nginx proxy in front of Victoria-Labs post might be helpful before proceeding here. Over the past 48 hours or so, I’ve managed to get Nginx logs flowing from an Nginx host on dev.freshports.org into Victoria-Logs via syslog-ng. Why syslog-ng? It can do TLS. In this post: FreeBSD 15.0 victoria-logs-1.50.0_2 (running on logs.int.unixathome.org) nginx-1.30.2_2,3 (running on dev.freshports.org) syslog-ng-4.11.0_2 (also running on that host) First test: can it POST? My first test, which I should have done ages ago, not this afternoon. This is curl posting into the Victoria-Logs instance. [13:35 logs dvl ~] % curl -i -X POST "http://logs.int.unixathome.org:9428/insert/jsonline" \ -H "Content-Type: application/json" \ -d "{\"_msg\":\"GET /commit.php?category=net-p2p HTTP/1.1\",\"_time\":\"$(date -u…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.