In kibana discover, with Elasticsearch Query DSL, I want to search for a range of timestamp dynamically
here is the range I used:
{
"range": {
"@timestamp": {
"gte": "2023-03-03T15:00:00.000Z",
"lt": "2023-03-03T17:00:00.000Z"
}
}
}
but I want to change the value of gte and lte to a dynamic value taking the value of two fields I already defined , for example gte takes the field's value "start_time" and lte takes the field's value "end_time"
Is there a way to do so?
Any help please