What I did is include the netflow storage path in the var/log ram disk by modifying the end of /usr/local/etc/rc.subr.d/var :
I also did something similar for the unbound.duckdb.
You'll need to re-apply these changes after each opnsense update as they'll be overwritten.
Code Select
echo -n "Setting up /var/log memory disk..."
mount -t tmpfs -o size=$((MAX_MEM_SYS / 100 * MAX_MFS_VAR)) tmpfs /var/log
echo "done."
ln -s /var/log/netflow /var/netflow
mkdir -p /var/log/netflow
chown root:wheel /var/log/netflow
chmod 750 /var/log/netflow
fi
# prep boog log
: > /var/log/boot.log
I also did something similar for the unbound.duckdb.
You'll need to re-apply these changes after each opnsense update as they'll be overwritten.
"