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:
Copy
  • 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:
Copy
  • 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:
Copy
  • 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:
Copy
  • 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.:
Copy
  • Find and change logfile directive to your desired location
Copy
  • Save the file, and restart Redis daemon e.g.
Copy
  • 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:
Copy
  • 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.:
Copy
  • Find and change logging_collector directive to on :
Copy
  • Save the file and restart PostgreSQL daemon, e.g.:
Copy
  • Find and collect log files in /var/lib/postgresql/12/main/log with names postgresql-<yyyy-mm-dd>_<HHMMSS>.log
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard