5 2 0:Setting Log Level
Overview
You can control the reporting (verbose) level to define the amount of detail SEP sesam logs in its error reports. By default, the log level is set to 0 for backup and restore, which logs only standard and error messages. Increasing the log level can be helpful for troubleshooting specific issues or when requested by SEP sesam support.
Increasing the log level significantly raises the volume of logged data and may impact SEP sesam performance. You should only raise the log level when investigating a specific issue or when instructed by SEP sesam support. If you modified the log level in the debug.ini file, be sure to revert it to the default value after reproducing the issue and capturing the necessary logs.
The default SEP sesam directory for logs is <SESAM_VAR> (/var/opt/sesam/var
). For more information, see Directory Layout.
SEP sesam log levels
SEP sesam uses different log levels for various modules. The following list shows the reporting levels for the backup and restore operations, which can be set individually for each backup or restore task. The log levels are presented in order of increasing verbosity, from the least to the most detailed information logged:
Setting | Log level details |
---|---|
0 | Logs only standard and error messages, with a summary of key operations and results. |
1 | This level provides basic progress tracking and logs a line for every item when its processing begins: sbc-3008: Info: Processing item: [xxx]... |
2 | This level provides feedback on successful completion of individual items and logs a line for every item when its processing completes: sbc-3108: Info: Item processed successfully: [xxx] |
3 | This level provides detailed information on backup process and logs detailed information about the processing of the backup module, including interactions with the DB_API modules. |
4 | This level provides detailed view of the internal operations and logs extensive details on underlying module processing, including interactions with XBSA and the DB_API modules. |
5 | This level provides insight into the data compression and packaging processes and logs packing data trace messages, including details about data formats like mtf, cpio, and sidf. |
Setting log level for a task
Setting log level for backup
You can set the desired log level for each backup task in its properties:
- In the Web UI, navigate to Backup Strategy -> Backup Tasks, then click on the backup task for which you want to define the log level. The task properties window will open.
- Alternatively, in the GUI, go to Main Selection -> Tasks -> By Clients, select your client and double-click the required backup task.
- Click the Options tab. The log level can be set under the Additional call arguments. Click the pencil icon to enable editing this section, and then in the Backup options or Restore options fields enter the desired verbose log level in the format:
‑v <number>
. For example, setting the level to‑v 3
will log information on the item processing. - After setting the log level, click Save to apply the changes and exit edit mode.
Note | |
For a new backup task, the log level can be set in the Advanced Options window of the Backup Configuration Assistant. For details, see Standard Backup Procedure. |
Screenshots
Setting log level for restore
By default, the log level for restore is set to 1 (-v 1) if 1000 or fewer items are selected. You can change the log level for each restore task in Restore Assistant:
- In the Web UI, navigate to Backup Strategy -> Backup Tasks. In the line with the required backup task, click the icon for available actions (3 vertical dots), and in the context menu click Restore. The Restore Assistant opens with the selected task.
- Alternatively, navigate to Backup Strategy -> Restore Tasks. In the line with the required restore task, click the icon for available actions (3 vertical dots), and in the context menu click Immediate start. In the Settings window, click the link Create a new restore task... to open the task in the Restore Assitant, where it can be modified.
- In the Options window, expand the Advanced restore options section, and select the required log level in the Log level drop-down list.
- Continue following the Restore Assistant to start the restore task.
Screenshots
Setting log level globally for SEP sesam kernel modules in debug.ini
You can configure the log level globally for SEP sesam-specific modules by editing the <SESAM_VAR>/ini/debug.ini
file on the SEP sesam Server. It is strongly recommended not to increase the log level unless explicitly instructed to do so by SEP sesam support for troubleshooting purposes.
To increase the log level, open the debug.ini file on the SEP sesam Server and under the TRACING section, set the desired log level (0–6) for the relevant module.
The following log levels are available, listed from least to most detailed:
0=ERROR 1=EMERGENCY 2=WARNING 3=NOTICE 4=INFO 5=DEBUG 6=TRACE
Once the necessary logs have been captured, it is strongly recommended to revert the log level back to its original setting. Keeping the log level too high may consume excessive disk space and significantly impact SEP sesam performance.
See also
About Logging - Analyzing SEP sesam Log Files