thinkst / opencanary

Modular and decentralised honeypot
http://opencanary.org
BSD 3-Clause "New" or "Revised" License
2.21k stars 353 forks source link

The log files have filled my partition, but the image still runs. #360

Closed joncinla closed 2 weeks ago

joncinla commented 2 weeks ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here. Suggested additional information

joncinla commented 2 weeks ago

I'm running more than one instance of thinkst/opencanary, and I love it, but the logs have completely filled my HD, and it still works, but I don't have enough space to maintain the server, --how can I manage the logs and trim them back to a reasonable size?

joncinla commented 2 weeks ago

I found the solution, -it was in my notes, you can have the docker-compose with parameters that limits the log size.

services: latest: # docker-compose up --build -d latest <<: *common container_name: opencanary_latest image: thinkst/opencanary logging: options: max-size: "5m" max-file: "3" build: context: . dockerfile: Dockerfile.latest