Playbook ElastAlert Syntax #11744
Replies: 1 comment
-
The generated query is actually EQL. This is a change from 2.3 where it was Lucene. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Security Onion: v2.4.20
I was starting to test out the playbook feature by activating a community play. Everything looks fine, but I know that the playbook feature is actually supported by ElastAlert2, and I was curious about what the actual query string looks like when it got converted from a Sigma rule.
I then checked out the "convert" feature on SO, and here the questions come. First, the converted so-called "SO Elasticsearch Query" is not a Elasticsearch supported query, it's actually based on OQL (Onion Query Language). But even when I apply this search on the "Hunt" page, which is not supposed to find anything that would match this criteria, it is doing a accurate search. Instead, the "Hunt" page returned me a bunch of irrelevant results. I'm not sure if this is expected.

But then I was thinking, maybe this "convert" feature is for rule testing purpose on "Hunt" page only. I try to check out the ElastAlert rule files under
/opt/so/rules/elastalert/playbook
and the "ElastAlert Config" section on "Playbook" page.For the config shown on "Playbook" page, it applied the OQL query for ElastAlert, which I'm sure if it would work. And some parts even got highlighted in red, which I'm not sure if this indicates any syntax error:

Then the actual config file under
/opt/so/rules/elastalert/playbook
looks like this, which looks a little bit different from a regular ElastAlert config file to me:I'm wondering what would be the recommended way to handle this or in general to create and debug a play that would work? Are we supposed to modify the generated ElastAlert config in some sense?
Beta Was this translation helpful? Give feedback.
All reactions