How to collect traces for troubleshooting Kaspersky Endpoint Security for Linux
Latest update: May 05, 2023
ID: 15598
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.7441)
- Kaspersky Endpoint Security 11.2.0 for Linux (version 11.2.0.4528)
- Kaspersky Endpoint Security 11.1.0 for Linux (version 11.1.0.3013)
- Kaspersky Endpoint Security 11.0.0 for Linux (version 11.0.0.2706)
Follow the instructions below under a privileged user account.
How to collect traces for Kaspersky Endpoint Security for Linux
When creating a request to technical support, you should attach a trace file. The trace files are used for diagnostic purposes.
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 using one of the following ways:
- Run kesl-control.
kesl-control --set-app-settings TraceLevel=Detailed- Use a configuration file if the kesl-control command 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 detailed trace logging using one of the following ways:
- Run kesl-control.
kesl-control --set-app-settings TraceLevel=None- Use a 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. For instructions, see this article.
To find the created trace file, use the following path: /tmp/*-collect.tar.gz.
How to collect trace files for Network Agent
-
Enable trace level 5 logging.
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
/etc/init.d/klnagent64 restartFor Network Agent version 14 and above, you can enable trace file rotation. 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
/etc/init.d/klnagent64 restart - Collect traces and other diagnostic information using the collect.sh script. For instructions, see this article.
To find the created trace file, use the following path: /tmp/*-collect.tar.gz.