How To Collect Logs in Central Hub Deployments (Container Environment)
1. MetaDefender Core
x
# Step 1: Run the below command to generate support package file
docker exec <container-name> /bin/bash -c "cd /opt/ometascan/core_data && /opt/ometascan/usr/bin/ometascan-collect-support-data.sh"
# Step 2: Copy the package file from container to host machine
docker cp <container-name>:/opt/ometascan/core_data/<support-package-file>.tar.gz <target folder>
<container-name>
the name of the container<support-package-file>.tar.gz
the support package file is generated you can see it in the output console log when you execute the command in theStep 1
<target folder>
the location folder save the support package file in the host machine
Example:
docker exec core /bin/bash -c "cd /opt/ometascan/core_data && /opt/ometascan/usr/bin/ometascan-collect-support-data.sh"
# output: Support file created: ometascan-hub-1.0.0-1-support-1666784477.tar.gz
docker cp core:/opt/ometascan/core_data/ometascan-5.3.0-1-support-1666784477.tar.gz ./
2. MetaDefender Core NAS (File Storage Server)
# Step 1: Run the below command to generate support package file
docker exec <container-name> /bin/bash -c "cd /opt/ometascan-nas/nas_data && /opt/ometascan-nas/usr/bin/ometascan-nas-collect-support-data.sh"
# Step 2: Copy the package file from container to host machine
docker cp <container-name>:/opt/ometascan-nas/nas_data/<support-package-file>.tar.gz <target folder>
<container-name>
the name of the container<support-package-file>.tar.gz
the support package file is generated you can see it in the output console log when you execute the command in theStep 1
<target folder>
the location folder save the support package file in the host machine
Example:
docker exec nas /bin/bash -c "cd /opt/ometascan-nas/nas_data && /opt/ometascan-nas/usr/bin/ometascan-nas-collect-support-data.sh"
# output: Support file created: ometascan-nas-1.0.0-1-support-1666787848.tar.gz
docker cp nas:/opt/ometascan-nas/nas_data/ometascan-nas-1.0.0-1-support-1666787848.tar.gz .
3. Redis (Caching Server)
docker logs <name of container> &> <filename>.log
Example:
docker logs redis &> redis.log
4. RabbitMQ (Messaging Broker Server)
docker logs <name of container> &> <filename>.log
Example:
Was this page helpful?