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>
xml
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:
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
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
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
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
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
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.