On Debian, my Influxdb2 v2.6 instance runs with systemd and writes the logs to stdout. But I want to send the logs to a dedicated logfile like /path/to/influxdb.log
.
How can I change this behavior? The Docs says, I have to change the startup parameter to influxd 1> /path/to/influxdb.log
. But where is this config located? I assume somewhere inside the /usr/lib/influxdb/scripts/influxd-systemd-start.sh
file.