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

  1. 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.

  2. 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.exe is sourced from
    <WinCC_OA installation>/bin/influxd.exe

    However, if the pathToInfluxdExecutable parameter has been specifically set in the InfluxDB® configuration file <projectdir>/config/influxdb.conf, the influxd.exe from that configured location will be used instead.

  3. If you're on Windows and wish to redirect the logs to a file, simply append
    > a.txt 2>&1
    to the command.
  4. In the influxdb.conf file, 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.