Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
c63ef620
Commit
c63ef620
authored
Jun 24, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ids) work in progress query alert log configd action
parent
e8da11e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
queryAlertLog.py
src/opnsense/scripts/suricata/queryAlertLog.py
+1
-1
actions_ids.conf
src/opnsense/service/conf/actions.d/actions_ids.conf
+7
-0
No files found.
src/opnsense/scripts/suricata/queryAlertLog.py
View file @
c63ef620
...
...
@@ -37,7 +37,7 @@ import ujson
from
lib.log
import
reverse_log_reader
from
lib.params
import
updateParams
suricata_log
=
'/
tmp
/eve.json'
suricata_log
=
'/
var/log/suricata
/eve.json'
# handle parameters
parameters
=
{
'limit'
:
'0'
,
'offset'
:
'0'
,
'filter'
:
''
}
...
...
src/opnsense/service/conf/actions.d/actions_ids.conf
View file @
c63ef620
...
...
@@ -16,6 +16,12 @@ parameters:
type
:
script
message
:
install
suricata
rules
[
query
.
alerts
]
command
:/
usr
/
local
/
opnsense
/
scripts
/
suricata
/
queryAlertLog
.
py
parameters
:/
limit
%
s
/
offset
%
s
/
filter
%
s
type
:
script_output
message
:
query
suricata
alerts
[
stop
]
command
:/
usr
/
local
/
etc
/
rc
.
d
/
suricata
stop
parameters
:
...
...
@@ -39,3 +45,4 @@ command:/usr/local/etc/rc.d/suricata status
parameters
:
type
:
script_output
message
:
get
suricata
daemon
status
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment