Jump to content

Recommended Posts

Antipova Anna
Posted

Advice and Solutions (Forum Knowledgebase) Disclaimer. Read before using materials.

Description and cautions

Sometimes you may need KWTS to write syslog messages to different log's name or/and path.

We're talking about this setting:

image.thumb.png.ed984c4f4125b6f1e8f16c22b2e11e89.png

Steps below were performed on Centos 7+ x64 and Ubuntu 20.04/22.04 x64 

KWTS 6.1 NOT ISO

By default it's set to local1, and depending on OS KWTS writes syslog messages to:

1) CentOS > /var/log/messages

2) Ubuntu > /var/log/syslog

Details

So here's how to change default behavior:

  • Change value on web interface to, for instance, local0

image.png.f518ed47245654f91923eaa087e3bf8e.png

  • Modify /var/opt/kaspersky/kwts/postgresql/postgresql.conf , so it should look like this:

image.png.11e38ca65f75aefb6350199ede083569.png         

  • Modify files like this:

         -For CentOS /etc/rsyslog.conf

image.png.0424878329abda01f879870d859d96ca.png

         -For Ubuntu /etc/rsyslog.d/50-default.conf (actually it could be different name, but this one is default for clean installation of Ubuntu)

image.png.556b1a0ad2abd9c9cb5ded42980874ec.png

  • Configure rotation for your /var/log/kwts-syslog.log (name it as you wish)

         -For CentOS /etc/logrotate.d/syslog, you can just append it to current rotation settings

image.png.99394f15880d489b8667f4470cc9c90d.png

         or configure your own parameters (refer to online documentation)

image.png.6eebb05f1818b7f1ff2013a8a4d9532a.png

      -For Ubuntu /etc/logrotate.d/syslog (you can create your own param eters as well)

image.png.234cf6550128f3bd73b72248f81c5d72.png

  • Reboot OS and finally check that KWTS writes syslog messages to your new log with cat /var/log/kwts-syslog.log command.

image.png

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...