Configuring One Identity Manager Service logging
Success and error messages from process handling are written to the One Identity Manager Service log file. Messages can also be written to a server’s event log. A severity level can be configured for output to this log file.
You can create most of the settings in the One Identity Manager Service configuration file. Use the Job Service Configuration program to do this. For more information about working with Job Service Configuration and configuring the One Identity Manager Service, see the One Identity Manager Configuration Guide.
Detailed information about this topic
Prerequisites for displaying the One Identity Manager Service log file
The One Identity Manager Service log files can be displayed using a HTTP server (http://<server name>:<port number>).
-
Users require permission to open an HTTP server. The administrator must grant URL approval to the user to do this. This can be run with the following command line call:
netsh http add urlacl url=http://*:<port number>/ user=<domain>\<user name>
If the One Identity Manager Service has to run under the Network Service's user account (NT Authority\NetworkService), explicit permissions for the internal web service must be granted. This can be run with the following command line call:
netsh http add urlacl url=http://<IP address>:<port number>/ user="NT AUTHORITY\NETWORKSERVICE"
You can check the result with the following command line call:
netsh http show urlacl
To display the One Identity Manager Service log file, configure the following modules in the One Identity Manager Service configuration file:
-
FileLogWriter module
Create the log file settings in this module.
-
Configuration module
Configure the port for displaying the services. The default value is port 1880.
-
HTTP authentication module
Set up an authentication method to display the log file.
For more information about configuring the One Identity Manager Service, see the One Identity Manager Configuration Guide.
Detailed information about this topic
Configuring the One Identity Manager Service log file
To generate the log file, customize the FileLogWriter module in the One Identity Manager Service configuration file for each One Identity Manager Service.
Table 17: FileLogWriter parameters
Log file (OutputFile) |
Name of the log file, including the directory name. Log information for the One Identity Manager Service is written to this file.
IMPORTANT: The directory specified for the file must exist. If the file cannot be created, no error output is possible. Error messages then appear under Windows operating systems in the event log or under Linux operating systems in /var/log/messages. |
Log rename interval (LogLifeTime) |
In order to avoid unnecessarily large log files, the module supports the functionality of exchanging the log file with a history list. The LogLifeTime specifies the maximum life of a log file before it is renamed as backup. If the log file has reached its maximum age, the file is renamed (for example, as JobService.log_20040819-083554) and a new log file is started.
Timeout format:
|
Process step log lifetime (JobLogLifeTime) |
Retention time for process step logs. After this expires, the logs are deleted.
Timeout format:
For test purposes, you can enable logging of individual process steps in the Job Queue Info. The processing messages of the process step is written to a separate log with the Debug NLog severity. The files are stored in the log directory.
Repository structure:
<Log directory>\JobLogs\<First 4 digits of the UID_Job>\Job_<UID_Job>_<yyyymmdd>_<Timestamp>.log |
Number of history logs (HistorySize) |
Maximum number of log files. If several log files exist, the oldest backup file is deleted when a new log file is created so that the limit is not exceeded. |
Max. log file size (MB) (MaxLogSize) |
Maximum size in MB of the log file. Once the log file has reached the limit, it is renamed as a backup file and a new log file is created. |
Max. length of parameters (ParamMaxLength) |
Maximum number of characters allowed in a process step parameter so that they are written to the log file. |
LogSeverity |
Severity levels of the logged messages.
Permitted values are:
-
Info: All messages are written to the event log. The event log quickly becomes large and confusing.
-
Warning: Only warnings and exception errors are written to the event log (default).
-
Serious: Only exception messages are written to the event log. |
Add server name (AddServerName) |
Specifies whether the server name is to be added to the log entries. |
For more information about configuring the One Identity Manager Service, see the One Identity Manager Configuration Guide.
Authentication method for displaying the One Identity Manager Service log file
Use the HTTP authentication module to specify how authentication on the HTTP server works to access the services, for example, to display the log file or status display.
The following module types may be selected:
-
BasicHttpAuthentication
Use this authentication type to specify a user account and the corresponding password for accessing the HTTP server.
-
WindowsHttpAuthentication
Use this authentication type to specify an Active Directory group, whose users can be authenticated on the HTTP server. A security ID (SID) or the Active Directory group name in the domain of the Job server can be specified. If Active Directory is not located in the domain of the Job server, the SID must be used.
NOTE: If a module is not specified, authentication is not required. In this case, all users can access the services.
For more information about configuring the One Identity Manager Service, see the One Identity Manager Configuration Guide.