How to collect traces for troubleshooting Kaspersky Endpoint Security for Linux
Show applications and versions that this article concerns
- Kaspersky Endpoint Security 11.4.0 for Linux (version 11.4.0.1096)
- Kaspersky Endpoint Security 11.3.0 for Linux (version 11.3.0.7508)
- Kaspersky Endpoint Security 11.3.0 for Linux (version 11.3.0.7441)
- Kaspersky Endpoint Security 11.2.0 for Linux (version 11.2.0.4528)
Follow the instructions below under a privileged user account.
How to collect traces for Kaspersky Endpoint Security for Linux
Trace files are required when creating a request to technical support. The trace files contain diagnostic information and are needed for solving errors or for analyzing a system load profile.
To collect traces for troubleshooting Kaspersky Endpoint Security for Linux:
- Delete previous traces (optional):
rm -f /var/log/kaspersky/kesl/kesl.*.log - Enable Detailed trace logging:
- Via kesl-control:
kesl-control --set-app-settings TraceLevel=Detailed- Via the configuration file if kesl-control is not available:
/var/opt/kaspersky/kesl/private/storage/appSettings.xml
<TraceLevel>Detailed</TraceLevel>
- Reproduce the issue.
- Take a screenshot or save the console output with an error where the current system time is visible. To display timestamps in the console, you can use the following command:
date - Disable trace logging:
- Via kesl-control:
kesl-control --set-app-settings TraceLevel=None- Via the configuration file if kesl-control is not available:
/var/opt/kaspersky/kesl/private/storage/appSettings.xml
<TraceLevel>None</TraceLevel>
- Collect traces and other diagnostic information using the collect.sh script.
The report will be created under the path: /tmp/*-collect.tar.gz.
How to collect trace files for Network Agent
-
Enable trace logging:
- Use level 4 by default:
mkdir -p /etc/opt/kaspersky/klnagent/1103/1.0.0.0/Debug
echo -n 4 > /etc/opt/kaspersky/klnagent/1103/1.0.0.0/Debug/TraceLevel
echo -n /opt/kaspersky/klnagent64/sbin > /etc/opt/kaspersky/klnagent/1103/1.0.0.0/Debug/TraceDir
systemctl restart klnagent64- If a technical support specialist requests the traces of level 5:
mkdir -p /etc/opt/kaspersky/klnagent/1103/1.0.0.0/Debug
echo -n 5 > /etc/opt/kaspersky/klnagent/1103/1.0.0.0/Debug/TraceLevel
echo -n /opt/kaspersky/klnagent64/sbin > /etc/opt/kaspersky/klnagent/1103/1.0.0.0/Debug/TraceDir
systemctl restart klnagent64For Network Agent version 14 and above, configuring the rotation of trace files is supported. For example:
echo -n 500 > /etc/opt/kaspersky/klnagent/1103/1.0.0.0/Debug/TraceMaxSizeMB
-
Disable trace logging:
rm -rf /etc/opt/kaspersky/klnagent/1103/1.0.0.0/Debug
systemctl restart klnagent64 - Collect traces and other diagnostic information using the collect.sh script.
The report will be created under the path: /tmp/*-collect.tar.gz.