Hi Kenny,
To achieve this, the monitor must be configured using Extraction query editor.
You can create a per query monitor like this
I am sharing an example Monitor query for FIM
{
"query": {
"bool": {
"must": [],
"filter": [
{
"match_all": {}
},
{
"match_phrase": {
"rule.groups": "syscheck"
}
},
{
"range": {
"timestamp": {
"gt": "now-5m",
"lte": "now",
"format": "strict_date_optional_time"
}
}
}
]
}
}
}
Mustache templates):
Wazuh File Integrity Monitoring alerts information:
Wazuh File Integrity Monitoring
{{#ctx.results.0.hits.hits}}
- Index: {{_index}}
- Document: {{_id}}
- Alert Description : {{_source.rule.description}}
- Alert id : {{_source.rule.id}}
- FIM path : {{_source.syscheck.path}}
- FIM event: {{_source.syscheck.event}}
- Alert Timestamp : {{_source.@timestamp}}
{{/ctx.results.0.hits.hits}}
Check the screenshot for reference.
Alerting is a plugin from opensearch. I am sharing some reference documents from opensearch that can be useful.
https://opensearch.org/docs/latest/observing-your-data/alerting/index/
--
You received this message because you are subscribed to the Google Groups "Wazuh | Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wazuh/c38d5351-31bb-4066-b2de-9e6e3f44402en%40googlegroups.com.