InfluxDB® Database Logs
This chapter provides general guidance and tips on how to find and interpret InfluxDB® logs, should you encounter any issues.
How to get database logs
- To access the logs, you'll first need to configure the backend to prevent
automatic database startup. To prevent the automatic startup, the button
Start database/Stop database
must be set to the status stopped.
For detailed information, see the chapter Backend Local, Database Remote.
- To start the InfluxDB® database manually from the command line, resulting in its
logs being printed to
stderr, use the following command:influxd.exe -config <config file path>Important:By default,influxd.exeis sourced from<WinCC_OA installation>/bin/influxd.exeHowever, if the
pathToInfluxdExecutableparameter has been specifically set in the InfluxDB® configuration file<projectdir>/config/influxdb.conf, theinfluxd.exefrom that configured location will be used instead. - If you're on Windows and wish to redirect the logs to a file, simply append
to the command.> a.txt 2>&1 - In the
influxdb.conffile, within the[logging]section, you can adjust the logging level. By default, it is set to# level = "info".If the default information is not sufficient for troubleshooting, consider changing it to
"debug"to capture more detailed insights.Note:While the debug level provides extensive detail, interpreting these logs can be challenging.
