Collecting Logs of Server Components
Logging Levels
Depending on how detailed the information about the component's operation needs to be, different logging levels can be set. They determine how important and detailed the information will be recorded in log files. This allows for more efficient filtering and analysis of logs.
It is recommended to use the Trace logging level as the most detailed.
Logging Levels
| Logging Level | Sequential Number | Description |
|---|---|---|
| Trace | 0 | Most detailed level. All information about the component's operation processes is recorded, including details about API method calls. |
| Debug | 1 | Details about the component's operation progress, significant variables, and other data that may be useful in detecting and fixing errors are recorded. |
| Info | 2 | Informational messages are recorded that notify about normal component functioning. They may include events such as starting or stopping processes, editing user profiles, and others. |
| Warn | 3 | Warnings and notifications about potential errors and abnormal situations are recorded. Events are not critical but require attention. At the same time, the component can continue operating. |
| Error | 4 | Errors that have led to incorrect component operation or the occurrence of serious problems are recorded. Logs indicate problems that require intervention and correction. |
| Fatal | 5 | The least detailed logging level. Only the most critical errors and problems that lead to immediate termination of the component or other serious consequences are recorded. Logs usually indicate serious failures that require immediate intervention and correction. |
Collecting installation script logs
The installation script run-deploy.sh may terminate with an error. In this case, you need to send the log files to technical support.
Path to log files: AxidianPAM_3.2/axidian-pam/logs/web-wizard/
Failed: Anable playbook returned error code: 2
Axidian Privilege Core
- Windows
- Linux
Enabling Logging
Open the configuration file C:\inetpub\wwwroot\core\appsettings.json
Edit the
NLogsection:- set the
minlevelparameter to Trace - set the
dbMinLevelparameter to Trace
Example"NLog": {
"variables": {
"minLevel": "Trace",
"dbMinLevel": "Trace",
"maxArchiveFilesPerCategory": 23
}- set the
Save the file.
After editing the configuration file, restart the application pool:
Run PowerShell as administrator.
Execute the command:
C:\Windows\System32\inetsrv\appcmd.exe recycle apppool Axidian.Privilege.Core
Collecting Logs
- Clear the existing Privilege Core server logs in the folder C:\inetpub\wwwroot\core\Logs
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Enabling Logging
Open the configuration file /etc/axidian/axidian-privilege/core/appsettings.json
Edit the
NLogsection:- set the
minlevelparameter to Trace - set the
dbMinLevelparameter to Trace
Example"NLog": {
"variables": {
"minLevel": "Trace",
"dbMinLevel": "Trace",
"maxArchiveFilesPerCategory": 23
}- set the
Save the file.
Navigate to the folder with PAM scripts and restart the component:
cd /etc/axidian/axidian-privilege/scripts/bash restart-pam.sh core
Collecting Logs
- Clear existing logs in the folder /etc/axidian/axidian-privilege/logs/core
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Axidian Privilege Idp
- Windows
- Linux
Enabling Logging
Open the configuration file C:\inetpub\wwwroot\idp\appsettings.json
Edit the
NLogsection:- set the
minlevelparameter to Trace - set the
dbMinLevelparameter to Trace
Example"NLog": {
"variables": {
"minLevel": "Trace",
"dbMinLevel": "Trace",
"maxArchiveFilesPerCategory": 23
}- set the
Save the file.
After editing the configuration file, restart the application pool:
Run PowerShell as administrator.
Execute the command:
C:\Windows\System32\inetsrv\appcmd.exe recycle apppool Axidian.Privilege.Idp
Collecting Logs
- Clear existing logs in the folder C:\inetpub\wwwroot\idp\Logs
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Enabling Logging
Open the configuration file /etc/axidian/axidian-privilege/idp/appsettings.json
Edit the
NLogsection:- set the
minlevelparameter to Trace - set the
dbMinLevelparameter to Trace
Example"NLog": {
"variables": {
"minLevel": "Trace",
"dbMinLevel": "Trace",
"maxArchiveFilesPerCategory": 23
}- set the
Save the file.
Navigate to the folder with PAM scripts and restart the component:
cd /etc/axidian/axidian-privilege/scripts/bash restart-pam.sh idp
Collecting Logs
- Clear existing logs in the folder /etc/axidian/axidian-privilege/logs/idp
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Axidian Privilege Management Console
- Windows
- Linux
Enabling Logging
Open the configuration file C:\inetpub\wwwroot\mc\assets\config\config.prod.json
Edit the
NLogsection:- set the
minlevelparameter to Trace - set the
dbMinLevelparameter to Trace
Example"NLog": {
"variables": {
"minLevel": "Trace",
"dbMinLevel": "Trace",
"maxArchiveFilesPerCategory": 23
}- set the
Save the file.
After editing the configuration file, restart the application pool:
Run PowerShell as administrator.
Execute the command:
C:\Windows\System32\inetsrv\appcmd.exe recycle apppool Axidian.Privilege.ManagementConsole
Collecting Logs
- Clear existing logs in the folder C:\inetpub\wwwroot\mc\Logs
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Enabling Logging
Open the configuration file /etc/axidian/axidian-privilege/mc/config.prod.json
Edit the
NLogsection:- set the
minlevelparameter to Trace - set the
dbMinLevelparameter to Trace
Example"NLog": {
"variables": {
"minLevel": "Trace",
"dbMinLevel": "Trace",
"maxArchiveFilesPerCategory": 23
}- set the
Save the file.
Navigate to the folder with PAM scripts and restart the component:
cd /etc/axidian/axidian-privilege/scripts/bash restart-pam.sh mc
Collecting Logs
- Clear existing logs in the folder /etc/axidian/axidian-privilege/logs/mc
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Axidian Privilege User Console
- Windows
- Linux
Enabling Logging
Open the configuration file C:\inetpub\wwwroot\uc\assets\config\config.prod.json
Edit the
NLogsection:- set the
minlevelparameter to Trace - set the
dbMinLevelparameter to Trace
Example"NLog": {
"variables": {
"minLevel": "Trace",
"dbMinLevel": "Trace",
"maxArchiveFilesPerCategory": 23
}- set the
Save the file.
After editing the configuration file, restart the application pool:
Run PowerShell as administrator.
Execute the command:
C:\Windows\System32\inetsrv\appcmd.exe recycle apppool Axidian.Privilege.UserConsole
Collecting Logs
- Clear existing logs in the folder C:\inetpub\wwwroot\uc\Logs
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Enabling Logging
Open the configuration file /etc/axidian/axidian-privilege/uc/config.prod.json
Edit the
NLogsection:- set the
minlevelparameter to Trace - set the
dbMinLevelparameter to Trace
Example"NLog": {
"variables": {
"minLevel": "Trace",
"dbMinLevel": "Trace",
"maxArchiveFilesPerCategory": 23
}- set the
Save the file.
Navigate to the folder with PAM scripts and restart the component:
cd /etc/axidian/axidian-privilege/scripts/bash restart-pam.sh uc
Collecting Logs
- Clear existing logs in the folder /etc/axidian/axidian-privilege/logs/uc
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Axidian Privilege Log Server
- Windows
- Linux
Enabling Logging
Open the configuration file C:\inetpub\wwwroot\ls\appsettings.json
Edit the
NLogsection:- set the
minlevelparameter to Trace - set the
dbMinLevelparameter to Trace
Example"NLog": {
"variables": {
"minLevel": "Trace",
"dbMinLevel": "Trace",
"maxArchiveFilesPerCategory": 23
}- set the
Save the file.
After editing the configuration file, restart the application pool:
Run PowerShell as administrator.
Execute the command:
C:\Windows\System32\inetsrv\appcmd.exe recycle apppool Axidian.Privilege.LS
Collecting Logs
- Clear existing logs in the folder C:\inetpub\wwwroot\ls\Logs
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Enabling Logging
Open the configuration file /etc/axidian/axidian-privilege/ls/appsettings.json
Edit the
NLogsection:- set the
minlevelparameter to Trace - set the
dbMinLevelparameter to Trace
Example"NLog": {
"variables": {
"minLevel": "Trace",
"dbMinLevel": "Trace",
"maxArchiveFilesPerCategory": 23
}- set the
Save the file.
Navigate to the folder with PAM scripts and restart the component:
cd /etc/axidian/axidian-privilege/scripts/bash restart-pam.sh ls
Collecting Logs
- Clear existing logs in the folder /etc/axidian/axidian-privilege/logs/ls
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Axidian Privilege Gateway Service
- Windows
- Linux
Enabling Logging
Open the configuration file C:\Program Files\Axidian\Axidian Privilege\Gateway\Pam.Gateway.Service\appsettings.json
Edit the
NLogsection:- set the
minlevelparameter to Trace - set the
dbMinLevelparameter to Trace
Example"NLog": {
"variables": {
"minLevel": "Trace",
"dbMinLevel": "Trace",
"maxArchiveFilesPerCategory": 23
}- set the
Save the file.
After editing the configuration file, restart Pam.Gateway.Service:
- Open the Services.
- Find Pam.Gateway.Service in the services list.
- Right-click the service and select Restart.
Collecting Logs
- Clear existing logs in the folder C:\Program Files\Axidian\Axidian Privilege\Gateway\Pam.Gateway.Service\logs
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Enabling Logging
Open the configuration file etc/axidian/axidian-privilege/gateway-service/appsettings.json
Edit the
NLogsection:- set the
minlevelparameter to Trace - set the
dbMinLevelparameter to Trace
Example"NLog": {
"variables": {
"minLevel": "Trace",
"dbMinLevel": "Trace",
"maxArchiveFilesPerCategory": 23
}- set the
Save the file.
Navigate to the folder with PAM scripts and restart the component:
cd /etc/axidian/axidian-privilege/scripts/bash restart-pam.sh gw-service
Collecting Logs
- Clear existing logs in the folder /etc/axidian/axidian-privilege/logs/gateway-service
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Axidian Privilege ProxyApp
Enabling Logging
Open the configuration file C:\Program Files\Axidian\Axidian Privilege\Gateway\ProxyApp\appsettings.json
Set the
defaultMinLevelparameter to Trace.Example"NLog": {
"variables": {
"defaultMinLevel": "Trace",
"maxArchiveFilesPerCategory": 23
}Save the file.
After editing the configuration file, restart Pam.Service:
- Open the Services.
- Find Pam.Service in the services list.
- Right-click the service and select Restart.
Collecting Logs
- Clear existing logs in the folder C:\Program Files\Axidian\Axidian Privilege\Gateway\ProxyApp\logs
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Privilege SSH Proxy
Enabling Logging
Open the configuration file /etc/axidian/axidian-privilege/ssh-proxy/appsettings.json
Set the
LogLevelparameter to Trace.Example"LogLevel": "TRACE",
"LogStream": "FILE",
"MaxLogFiles": 100,
"MaxLogFileSize": 10000000,Save the file.
Navigate to the folder with PAM scripts and restart the component:
cd /etc/axidian/axidian-privilege/scripts/bash restart-pam.sh ssh-proxy
Collecting Logs
- Clear existing logs in the folder /etc/axidian/axidian-privilege/logs/ssh
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Axidian Privilege PostgreSQL Proxy
Enabling Logging
Open the configuration file /etc/axidian/axidian-privilege/sql-proxy/appsettings.json
Set the
LogLevelparameter to Trace.Example"LogLevel": "TRACE",
"LogStream": "FILE",
"MaxLogFiles": 100,
"MaxLogFileSize": 10000000,Save the file.
Navigate to the folder with PAM scripts and restart the component:
cd /etc/axidian/axidian-privilege/scripts/bash restart-pam.sh sql-proxy
Collecting Logs
- Clear existing logs in the folder /etc/axidian/axidian-privilege/logs/sql
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.
Axidian Privilege RDP Proxy
Enabling Logging
Open the configuration file /etc/axidian/axidian-privilege/rdp-proxy/appsettings.json
Set the
LogLevelparameter to Trace.Example"LogLevel": "TRACE",
"LogStream": "FILE",
"MaxLogFiles": 100,
"MaxLogFileSize": 10000000,Save the file.
Navigate to the folder with PAM scripts and restart the component:
cd /etc/axidian/axidian-privilege/scripts/bash restart-pam.sh rpd-proxy
Collecting Logs
- Clear existing logs in the folder /etc/axidian/axidian-privilege/logs/rdp
- Reproduce the problem.
- Collect an archive with logs and send it to technical support. Describe the user's actions and specify the exact time when the problem occurred.