0
(0)

How to create trace files for File Anti-Virus

By default, the File Anti-Virus component writes trace files to syslog.

To enable tracing:

  1. Open the ksv.cfg configuration file for editing by executing the command:

mcedit /etc/opt/kaspersky/ksv/ksv.cfg

  1. In the [process] section, set the value trace-level = 1000.
  2. To save the changes, press F2 on the keyboard.
  3. Restart the File Anti-Virus service with the command:

/etc/init.d/ksv restart

  1. Restart Network Agent on the SVM using the command:

/etc/init.d/klnagent64 restart

  1. Reproduce the issue.
  2. Disable detailed tracing: open ksv.cfg for editing and restore the previous value to trace-level = 0.
  3. Restart ksv and klnagent.

The trace file is saved to /var/log/ksv.

 

How to create trace files for Network Threat Detection

By default, the Network Threat Detection component writes trace files to syslog.

To enable tracing:

  1. Open the ksv.cfg configuration file for editing by executing the command:

mcedit /etc/opt/kaspersky/ksvns/ksv.cfg

  1. In the [process] section, set the value trace-level = 1000.
  2. To save the changes, press F2 on the keyboard.
  3. Restart the Network Threat Detection component:

/etc/init.d/ksvns restart

  1. Restart Network Agent on the SVM using the command:

/etc/init.d/klnagent64 restart

  1. Reproduce the issue.
  2. Disable detailed tracing: open ksv.cfg for editing and restore the previous value trace-level = 0.
  3. Restart the ksvns service.

The trace file is saved to /var/log/ksv.

 

How to create trace files for Connector

    1. Open the connector.conf configuration file for editing by executing the command:
      • On the SVM with File Anti-Virus installed:

mcedit /etc/opt/kaspersky/ksv/connector.conf

      • On the SVM with Network Threat Detection installed:

mcedit /etc/opt/kaspersky/ksvns/connector.conf

  1. Set the value traceLevel = 1000.
  2. To save the changes, press F2 on the keyboard.
  3. Restart Network Agent on the SVM using the command:

/etc/init.d/klnagent64 restart

  1. Reproduce the issue.
  2. Disable local tracing: open connector.conf for editing and restore the previous value trace-level = 0.
  3. Restart the klnagent service.

The trace file is saved to /var/log.

 

How to create trace files for the Network Agent

  1. Open the klnagent file for editing by executing the command:
mcedit /etc/init.d/klnagent64
  1. In the klnagent file, replace “$”{BIN} in the start() function with ${BIN} -tl 4 -tf /var/log/kaspersky/klnagent/klnagent.log.

Image: Making changes in the klnagent file.

  1. To save the changes, press F2 on the keyboard.
  2. Restart Network Agent on the SVM using the command:
/etc/init.d/klnagent64 restart
  1. Reproduce the issue.
  2. Disable tracing: change ${BIN} -tl 4 -tf /var/log/kaspersky/klnagent/klnagent.log in the start() function back to ${BIN} and restart klnagent.

The trace file is saved to /var/log.

 

How to create trace files for the management plug-in

On the computer with the Administration Console and management plugin installed, do the following:

  1. Open the registry editor (regedit.exe).
  2. Go to the section:
    • For 64-bit operating systems: HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/Kaspersky Lab/Components/34/Products/KSV/5.0.0.0/settings/Trace
    • For 32-bit operating systems: HKEY_LOCAL_MACHINE/SOFTWARE/Kaspersky Lab/Components/34/Products/KSV/5.0.0.0/settings/Trace
  3. Change the value of TraceToFileEnable to 1 and set the tracing level value in TraceToFileLevel (from 0 to 1000).

Editing the registry

  1. Reproduce the issue.
  2. Change the value of TraceToFileEnable to 0.

A trace file is created in the folder %Program Files%\Kaspersky Lab\Kaspersky Security Center\Plugins\KSV5.plg\ with the name trace.log.

Source : Official Kaspersky Brand
Editor by : BEST Antivirus KBS Team

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

(Visited 98 times, 1 visits today)