How To Collect Logs In Central Hub Deployments

1. MetaDefender Core

Please refer to How to Create Support Package?

2. MetaDefender Core Hub (Hub)

Windows

  • Run command prompt as administrator privilege.

  • Change directory (cd ) to Hub installation directory (e.g. C:\Program Files\OPSWAT\MetaDefender Core Hub )

  • Run following file script to generate Hub support package:

ometascan-hub-collect-support-data.bat
  • Find and collect Hub generated support package (ometascan-hub-<hub_version>-support-<timestamp>.zip ) in the Hub installation folder

Linux

  • Run terminal as root privilege (sudo ).

  • Run following file script to generate Hub support package:

/usr/bin/ometascan-hub-collect-support-data.sh
  • Find and collect Hub generated support package (ometascan-hub-<hub_version>-support-<timestamp>.zip ) in the current folder.

3. MetaDefender Core NAS (File Storage Server)

Windows

  • Run command prompt as administrator privilege.

  • Change directory (cd ) to NAS installation folder (e.g. C:\Program Files\OPSWAT\MetaDefender Core Nas )

  • Run following file script to generate NAS support package:

ometascan-nas-collect-support-data.bat
  • Find and collect NAS generated support package (ometascan-nas-<nas_version>-support-<timestamp>.zip ) in the Hub installation folder.

Linux

  • Run terminal as root privilege (sudo ).

  • Run following file script to generate NAS support package:

/usr/bin/ometascan-nas-collect-support-data.sh
  • Find and collect NAS generated support package (ometascan-nas-<nas_version>-support-<timestamp>.zip ) in the current folder.

4. Redis (Caching Server)

Windows

  • Find and collect Redis own logs in the Redis installation folder (e.g. C:\Program Files\Redis\server_log.txt)

Linux

  • Run terminal as root privilege (sudo ).

  • Open Redis config file (/etc/redis/redis.conf ) in edit mode e.g.:

vi /etc/redis/redis.conf
  • Find and change logfile directive to your desired location

logfile "<path to redis log>.log"
  • Save the file, and restart Redis daemon e.g.

sudo systemctl restart redis
  • Find and collect Redis log at <path to redis log>.log

5. RabbitMQ (Messaging Broker Server)

Windows

  • Find and collect RabbitMQ log at %APPDATA%\RabbitMQ\log\rabbit@<computer name>.log

  • Find and collect RabbitMQ upgrade log at %APPDATA%\RabbitMQ\log\rabbit@<computer name>_upgrade.log

Linux

  • Run terminal as root privilege (sudo ).

  • Run following command to retrieve RabbitMQ log location:

rabbitmq-diagnostics -q log_location
  • Access RabbitMQ log folder and find log files:

    • rabbit@<computer name>.log

    • rabbit@<computer name>_upgrade.log

6. PostgreSQL (Database Server)

Windows

  • Find and collect PostgreSQL log files in C:\Program Files\PostgreSQL\12\data\log with names postgresql-<yyyy-mm-dd>_<HHMMSS>.log

Linux

  • Run terminal as root privilege (sudo ).

  • Open PostgreSQL config file (/etc/postgresql/12/main/postgresql.conf ) in edit mode e.g.:

vi /etc/postgresql/12/main/postgresql.conf
  • Find and change logging_collector directive to on :

logging_collector = on
  • Save the file and restart PostgreSQL daemon, e.g.:

sudo systemctl restart postgresql
  • Find and collect log files in /var/lib/postgresql/12/main/log with names postgresql-<yyyy-mm-dd>_<HHMMSS>.log