Filter for fail2ban for nextcloud in docker

I was trying to create filter for fail2ban for nextcloud running on docker but none of them are working. Log of docker are in json format like this .

{
  "log": < usual log of nextcloud>
}