Fail2ban configuration file

Heyo,

What RegEx filter should I use in order to get failed login attempts for Fail2ban?
And where does WriteFreely can store logs?