Passing dynamic values to range query

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

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.