Netskope Cloud Exchange

Log cleanup

To remove log files perform the steps shown below on the machine that is running the docker containers.

  1. Enter the core docker container.

    docker exec -ti core sh
  2. Remove log files.

    rm -f /logs/celery /logs/celery-beat /logs/gunicorn /logs/rabbitmq
  3. Restart the core container.

    docker-compose restart core

To remove logs from the database perform the steps shown below on the machine that is running the docker containers.

  1. Enter the mongodb docker container.

    docker exec -ti mongodb sh
  2. Login to the mongodb client. Enter the value of the MONGO_PASSWORD environment variable (from docker-compose.yml) when prompted for a password.

    mongo --username cteadmin
    Enter password:
  3. Switch to the CE database.

    use cte
  4. Remove the logs.

    db.logs.remove({})

Note that the platform doesn't support auto log rotation. This feature may be addressed in future releases.