1 hour ago · Tech · 0 comments

This post is more self-documentation than anything else. The links in this post might be useful than the content. Today I’ll start pulling production FreshPorts nginx logs into VictoriaLogs. Over the past few days, I’ve configured a proof-of-concept and now I’m ready to try this in prod. In this post: FreeBSD 15.0 (installed on the host aws-1) nginx-1.30.2_2,3 (running in a jail, aws-1-nginx01, on the host aws-1) syslog-ng-4.11.0_2 (running on the host aws-1, pulling logs from the jail) For the initial syslog-ng install and config, I’m following my blog post Replacing syslogd with syslog-ng (sysutils/syslog-ng) on FreeBSD. That work is not shown here. Connection This proves the host can connect to the VictoriaLogs host: [11:41 aws-1 dvl ~] % nc -zv logs.int.unixathome.org 9428 Connection to logs.int.unixathome.org 9428 port [tcp/*] succeeded! Next, let’s try a curl POST. curl --cacert /etc/ssl/cert.pem -i -X POST "https://logs.int.unixathome.org:9428/insert/jsonline" \ -H…

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