Json IP blacklists

Hi to all, i’m new to crowdsec and i need the IP blacklists in json format or in a file.log…
Same for the alerts… how can i obtain them?

cscli supports a -o json option to output in json format, would that do the trick for you ?

no… i need a .json file with the IP blacklists coming in the file when they are added to crowdsec.
There is a way to retrieve such file?

Then, I’m not sure I understand. What do you want to achieve ? cscli decisions list -o json > yourfile.json wouldn’t work ?

If you want the file to grow “on the go” when new bans are added, I guess you should look into GitHub - crowdsecurity/cs-custom-bouncer: CrowdSec bouncer to use custom scripts