App logs
App logs are stored in the /opt/app-root/store/log directory of your application’s Docker container.
The /opt/app-root/store/log directory contains 6 log files by default.
The first 3 log files contain stdout and stderr from startup shell scripts that now execute during container startup:
A0000_start_container.sh.logcontains the output fromA0000_start_container.shA0001_kubernetes.sh.logcontains the output fromA0001_kubernetes.shA9800_configure.sh.logcontains the output fromA9800_configure.sh
The next 3 files are for supervisord and the app itself:
app.logis the log file that is created by the qpylib library. Logging calls to theqpylib.log()method are written in theapp.logfile.startup.logis the initial start-up log for the application. This log is useful for confirming that initialization of the app completed successfully. For example, it indicates whether flask has started without errors in this log.supervisord.logcontains the stderr and stdout from supervisord process.
The IBM® QRadar® Python helper library (qpylib) contains two useful functions that you can use to add logging to your app.
Use built-in routes to create HTTP requests download, view, and set log collection levels.