Logging parameters
The preferred way of changing logging settings is changing application parameters by editing the properties file instances/<instance-name>/instance.properties or using the corresponding environment variables.
To get a list of all available parameters, you may run the following command:
Application logs
Property | Environment Variable | Description |
|---|---|---|
|
| Log level used for enabled application modules. Possible values: DEBUG, INFO, WARN, ERROR, TRACE. |
|
| Set to "true" or "false" to enable or disable log outputs/appenders. The default values for these are “false”, but instances created with IAM 7.1 or later have the following presets in “instance.properties”:
(To restore behavior to pre 7.1 defaults, set “iam.log.main.enabled=true”. Previously created instances are unaffected due to configured appenders in the log4j config files.) |
|
| Configuration parameters for corresponding log outputs/appenders. |
|
| Send structured log records from the local log file in “iam.structured-file.dir” to elasticsearch. I.e. for reporting. Notice To prevent DNS resolution issues, you may need to specify the Elasticsearch hostname as a fully qualified (absolute) domain name (FQDN). An absolute domain name includes a trailing dot (.) at the end of the name. Example FQDN: Corresponding host URL: Whether an FQDN is required depends on your deployment environment and its DNS server. Some resolvers interpret hostnames like This behavior typically occurs in Kubernetes environments, containers with configured DNS search domains, or internal enterprise DNS setups. Adding the trailing dot forces the resolver to treat the hostname as absolute. For background information, see RFC 1034 - Domain names. |
Web server and access logs
Similar parameters exist to configure web server and access logs. Look for parameters beginning with “iam.web-server.log” and “iam.web-server.access-log” respectively. The extended Log4j 2 configuration options described in Log4j 2 configuration files are not available for web server and access logs.
Audit log signing
By default, the audit logger uses the “IAM-AUDIT” appender to write log messages into the “medusa-audit.log” file, in addition to logging into the usual log files. See Generating log outputs for a list of all log files.
Audit log messages can be digitally signed to ensure authenticity and integrity. To enable signing set the “iam.audit-log.signing.enabled” parameter to “true”.
Enabling audit log signing can significantly reduce the parallel throughput of Airlock IAM operations, which can negatively impact performance. It is therefore recommended to run load tests before deploying IAM instances with audit log signing enabled.
Further information and links
- To learn more about the logging infrastructure of Airlock IAM see Processing log output.
- To learn more about the different types of log formats supported by Airlock IAM see Log message formats.
- Log4j 2 configuration files