Configuring Logging
Configuring the Logging Database Connection in the logsDBConfig.xml File
Configuration file (<connection> block)
<?xml version="1.0" encoding="ISO-8859-1"?>
<LogsDatabaseConfig>
<connection>
<driver>org.h2.Driver</driver>
<url>jdbc:h2:${ibis.root.directory}/log/dbh2/logs;MVCC=TRUE</url>
<!-- Encrypted password and/or username
To get your encrypted password and/or username use the CLI client.
Example:
cd path/to/inubit_installation/server/process_engine/bin
./startcli.sh -\-encryptString myPassword
Insert the encrypted password and/or username as values into the corresponding
tags and set the attribute encrypted="false" to encrypted="true".
Example:
<user encrypted="true">AES-ZKEFCtfXeLAmklzd2zomyA==</user>
<password encrypted="true">AES-ZKEFCtfXeLAmGUdQ2zomyA==</password>
-->
<user encrypted="false">sa</user>
<password encrypted="false"></password>
<shutdownCommand>SHUTDOWN</shutdownCommand>
<checkValidConnection>true</checkValidConnection>
<minPoolSize>1</minPoolSize>
<maxPoolSize>100</maxPoolSize>
<checkoutTimeoutInMillisecs>120000</checkoutTimeoutInMillisecs>
<maxAgeInMillisecs>3600000</maxAgeInMillisecs>
<noOfRetries>3</noOfRetries>
<retryInterval>2000</retryInterval>
<removeAbandoned>false</removeAbandoned>
<removeAbandonedTimeout>60</removeAbandonedTimeout>
</connection>
<blockInsertSize>2000</blockInsertSize>
<maxQueueLogSize>200000</maxQueueLogSize>
...
</LogsDatabaseConfig>
Location for the configuration file
The configuration file logsDBConfig.xml
is located in the following directory: <inubit-installdir>/inubit/server/ibis_root/conf
Properties
The following connection properties can be configured in the logsDBConfig.xml
file:
Property | Description | ||
---|---|---|---|
|
Database driver class |
||
|
URL of the database
|
||
|
Username Attribute The specified username is encrypted. Attribute The specified username is not encrypted and is replaced by the encrypted username the first time the server starts. The attribute |
||
|
Password Attribute The specified password is encrypted. Attribute The attribute |
||
|
If this property is set to By default, this property is set to
|
||
|
This property determines how many database connections must be used at a minimum. The default value is |
||
|
This property determines how many database connections can be used simultaneously. The default value is |
||
|
This property determines the timeout for waiting for the provision of a database connection for the database connection pool. The default value is |
||
|
This property determines how long the pool should wait at the most, until a connection is obtained from the pool. The default value is |
||
|
In case of database errors, the query execution can be retried for
To handle deadlock errors, the default values are set as follows:
|
||
|
To remove abandoned database connections. Possible values:
|
||
|
To set the timeout to remove abandoned database connections. If the By default, the
|
||
|
This property contains the configuration for the number of inserts into the database to be processed in a batch.
The default value is As soon as the number of inserts of the blocking queue reaches the value of |
||
|
This property describes the maximum number of entries in the blocking queue.
Default value is In case of a new logging event, all related records are written to the blocking queue first.
As soon as the number of records in the blocking queue reaches the value of |
||
|
For MySQL 8 only: If a database user has access to more than one schema: Add the extra parameter |
Configuring Audit Logs
Location for storing log file
The log file is stored in the directory <inubit-installdir>/inubit/server/ibis_root/log
.
Usage
Refer to Audit Log: Monitoring User Actions.
The audit logs are configured in both the Workbench and a configuration file.
Call up
INUBIT Workbench > Administration > General Settings > Logging > Audit
Option | Description |
---|---|
Maximum size of the audit log file |
State in KB. If this size is not reached, the current audit log file, audit.log, is closed and archived. In this case it is saved with a sequential number, e.g. audit.log.5 |
Number of backup of audit log files |
Information regarding the maximum number of files created for archiving the file audit.log. |
Configuration
In the file <inubit-installdir>/inubit/server/ibis_root/conf/logsDBConfig.xml
you can
-
limit the number of days for which the log entries are stored,
-
configure the number of entries in the audit log by means of the elements
<minimumLimitAuditLog>
and<maximumLimitAuditLog>
.
Refer to Switching INUBIT Monitoring Database
Element | Description | ||
---|---|---|---|
|
Entries are logged for the given number of days.
|
||
|
minimum number of entries
|
||
|
maximum number of entries Entries are logged until the number of entries has reached the value configured in the
|
Set 0 to <minimumLimitAuditLog>
and 0 to <maximumLimitAuditLog>
to disable the counter based deletion.
Configuring System Log
Location for storing log entries
The log entries are stored in the INUBIT database, refer to Configuring Databases.
Usage
Refer to System Log
Configuration
In the file <inubit-installdir>/inubit/server/ibis_root/conf/logsDBConfig.xml
you can
-
limit the number of days for which the log entries are stored,
-
configure the number of entries in the System log by means of the elements
<minimumLimit>
and<maximumLimit>
.
Refer to Switching INUBIT Monitoring Database
Element | Description | ||
---|---|---|---|
|
Entries are logged for the given number of days.
|
||
|
minimum number of entries
|
||
|
maximum number of entries Entries are logged until the number of entries has reached the value configured in the
|
Set 0 to <minimumLimit>
and 0 to <maximumLimit>
to disable the counter based deletion.
Activating and Configuring Server Traces
Location for storing log file
The log file trace.log
is stored in the <inubit-installdir>/inubit/server/ibis_root/log
directory.
Usage
Call up
INUBIT Workbench > Administration > General Settings > Logging > Trace
Option | Description | ||
---|---|---|---|
Server trace |
To enable/disable the server trace.
|
||
|
|||
Maximum size of trace log files |
Once the stated size has been reached, the current trace log is saved with a sequential number. |
||
Number of backups of the trace log files |
Information regarding the maximum number of files created for archiving the |
||
Custom server trace |
For adding individual loggers, e.g. for self-developed plug-ins. After adding the logger, click for specifying log level, layout, path and output file name and maximum size in the same dialog. Once the file has reached the maximum size, it is renamed and saved as backup. You can also specify the number of backup files. Moreover, you can decide, if you want the custom logs to be additionally written into the trace log. |
Web Service Logs
Usage
For logging input and output messages as well as fault outputs/error responses in Web Services Connectors, for which the logging has been activated
Call up
INUBIT Workbench > Administration > General Settings > Logging > Web Service
Option | Description |
---|---|
Use custom log output |
If activated, you can configure log output by using the |
Maximum size of web service log file (only if checkbox for |
If the given size is reached, then the current web service log file webservice.log is closed and archived.
It is given a running number, for example |
Number of backups for the web service log files (only if checkbox for |
Maximum number of files that will be made to archive the web service log files (webservice.log). |
Custom log output |
Configure the output via a log4j2 appender configuration. The button opens a dialog where you can add or adjust an appender. |
Storage location of log file
The webservice.log
log file is stored in the <inubit‑installdir>/server/ibis_root/log
directory.
Configure custom log output
Proceed as follows
-
In the row
custom log output
, click the button. A dialog opens. -
Select the
log level
from the drop-down list. -
Click the button and enter a configuration. Alternatively, you can insert a supplied sample appender by using the pull-down menu Output definition (log4j2 appender) > Insert example.
-
If necessary, adapt the configuration.
-
Validate the configuration by using the pull-down menu Output definition (log4j2 appender) >Validate configuration (locally).
-
Click OK to save the appender configuration.
-
Save the Web Service log configuration.
Adding User-defined Columns to System Log and/or Queue Manager
Usage
To display INUBIT system variables as well as user-defined variables in Queue Manager and/or System Log
Proceed as follows
-
In the Workbench, open the Administration> General Settings > Logging > User defined columns page.
-
In the Value column of one of the user-defined columns for the System Log or Queue Manager, enter a variable name, e.g.
ISErrorKey
. -
Save the changes.
-
Open the Monitoring tab.
-
Depending on the logging table you have configured the column for, open the System Log or Queue Manager tab.
-
To display the user-defined column, right-click the table heading and check the is_userdefined* item you want to monitor.
→ The column is added to the table, named after the variable name.
-
Once you have executed a workflow, the table can be updated automatically or manually.
→ The variable value is displayed in the column.
To create a user-defined variable and display it as column, refer to Creating a User-defined Variable and Displaying it as Column in Queue Manager/System Log.