mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 10:39:53 +00:00
Merge pull request #1503 from brknkfr/corwdsec_decisions_limit
[crowdsec]: Increase decisions to 1000 (more than default 100)
This commit is contained in:
commit
cceb4a7db7
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class Decisions():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
_state = state.read_section('scenarios')
|
_state = state.read_section('scenarios')
|
||||||
self.state = _state if _state is not None else {}
|
self.state = _state if _state is not None else {}
|
||||||
self.data = call_cli('decisions', 'list')
|
self.data = call_cli('decisions', 'list', '--limit', '1000')
|
||||||
if self.data is not None:
|
if self.data is not None:
|
||||||
self.decisions = len(self.data)
|
self.decisions = len(self.data)
|
||||||
self.banned_ips = len(set([d['source']['ip'] for d in self.data if d['source']['scope'] == 'Ip'])) # noqa: E501
|
self.banned_ips = len(set([d['source']['ip'] for d in self.data if d['source']['scope'] == 'Ip'])) # noqa: E501
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue