Coder Social home page Coder Social logo

fail2ban logs about docker-fail2ban HOT 6 CLOSED

crazy-max avatar crazy-max commented on July 24, 2024
fail2ban logs

from docker-fail2ban.

Comments (6)

onedr0p avatar onedr0p commented on July 24, 2024

Did you try to mount /var/log/fail2ban.log to the host system?

from docker-fail2ban.

danteali avatar danteali commented on July 24, 2024

I'm already mounting -v /var/log:/var/log to enable fail2ban to access various logs so unless I'm mistaken I should already see the fail2ban.log if it is being written.

from docker-fail2ban.

crazy-max avatar crazy-max commented on July 24, 2024

@danteali Today fail2ban logs on this image are forced to stdout but I could set this up.

from docker-fail2ban.

danteali avatar danteali commented on July 24, 2024

That would be great, looks like it would be relatively straightforward to add a new optional env var (e.g. $F2B_LOG_LOCATION) which would allow us to set the path for logging to a file if we needed to. I would do a PR myself but I'm not really familiar with using git repos (something I need to learn!).

For the time being I'll try copying fail2ban.conf locally and changing it manually then mounting at container startup.

Thanks for all your work on this.

from docker-fail2ban.

crazy-max avatar crazy-max commented on July 24, 2024

@danteali You can now use F2B_LOG_TARGET to change log target. You can use /data/failban.log to keep log persisted for example.

from docker-fail2ban.

danteali avatar danteali commented on July 24, 2024

Awesome! Thanks!

from docker-fail2ban.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.