How to set influxdb log rolling and log to special file path

now only output log to stderr, can i set log file path in the config file

This will depend on how you’ve installed InfluxDB. You can find more information in the InfluxDB Logs documentation.