mihirsoni / odfe-monitor-cli Goto Github PK
View Code? Open in Web Editor NEWManage your Alerting monitors
License: Apache License 2.0
Manage your Alerting monitors
License: Apache License 2.0
Hi!
I've got error "json: unsupported type: map[interface {}]interface{}".
Applied monitor template:
- name: 'Critical vulnerabilities detected'
enabled: true
schedule:
period:
interval: 8
unit: HOURS
cron: null
inputs:
- search:
indices:
- wazuh-alerts-3.x-*
query:
aggregations: {}
query:
bool:
adjust_pure_negative: true
boost: 1
filter:
- range:
'@timestamp':
boost: 1
format: epoch_millis
from: '{{period_end}}||-1d'
include_lower: true
include_upper: true
to: '{{period_end}}'
- term:
data.vulnerability.severity:
boost: 1
value: Critical
size: 0
triggers:
- name: Above 10 Critical vurnerabilities detected per 1 hour
severity: "4"
condition: ctx.results[0].hits.total.value > 10
actions:
- name: Send notification to Opsgenie (Vulnerability issues)
destinationId: opsgenie_integration:_secops_group
subject: ""
message: "{\n \"message\": \"{{ctx.monitor.name}}. Trigger: {{ctx.trigger.name}}.\",
\n \"description\": \"{{ctx.monitor.name}}. Trigger: {{ctx.trigger.name}}.
Period start: {{ctx.periodStart}}. Period end: {{ctx.periodEnd}}.\",
\n \"entity \":\"rtrx_security\",\n \"priority\": \"P{{ctx.trigger.severity}}\",\n
\"alias\": \"{{ctx.trigger.name}}\"\n}"
Similar problem described here: mattn/anko#264
Could we fix? Might migrate from encoding\json to github.com/json-iterator/go ?
Thanks!
BR, Eugene Fateev
The throttling value of triggers is not saved therefore causing the alerting to spam every minutes on trigger update
EDIT: It looks like it's due to the latest release not supporting this issue. The latest version of the code though seems to support that as well as some other neat features. Would it be possible to make a release for the sake of simplicity ?
The sync --destinations looks like key:value for destinations name and some hash key not full destinations information.
How can I backup and restore destinations ? Thanks
Running: odfe-monitor-cli -e https://localhost:9200 -p "password" sync --destinations
And error: panic: interface conversion: interface {} is nil, not string
I looked at destination.go and ran the {"size": 10000, "query":{ "bool": {"must": { "exists": { "field" : "destination" }}}}}, looking at the results I dont see any reference of Interface.
Hi
I have this error on Mac M1
"mihirsoni/odfe-monitor-cli crit platform darwin/arm64 is not supported. Make sure this script is up-to-date and file request at https://github.com/mihirsoni/odfe-monitor-cli/issues/new"
Please take a look it.
Thanks in advance
I use EC2 amazon linux to build Opendistro (1.12.0)
I installed odfe-monitor-cli and connect successful with ELK. (Run sync destination and monitor)
But when i check file destination and monitor, it's nothing here.
I check all problem about security but no problem here.
I have created monitor and destination on Kibana.
Pleass give me a advice to resolve.
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.