Hi,
I'm quite new to the beautiful world of elasticsearch and ran into a problem using the query language.
So I've installed a ELK 5.5 test environment including the WINLOGBEAT component, everthing is working fine.
Since the platform comes with a fancy query feature I wanted to query some of the events.
Use case
I want to query events with a specfic ID which occured in the last 15 minutes and display all relevant event entries.
This is my approach but it does not work
{
"query": {
"filtered": {
"query": {
"term": {"event_id": "4624"}
},
"filter": {
"range": {
"timestamp" : {"gt" : "now-5min"}
}
}
}
}
}
Result
{
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "no [query] registered for [filtered]",
"line": 3,
"col": 17
}
],
"type": "parsing_exception",
"reason": "no [query] registered for [filtered]",
"line": 3,
"col": 17
},
"status": 400
}
Does anyone have a recommendation how to slove issues.
Thank you & kind regards
PR