Timelion query question for getting date

Hello?

I have a simple question for query of timelion kibana.
i want to draw the total documents count of specific index.

Here is query sample.
.es(
index=test*,
timefield=@timestamp,
q='elasticsearch.index.name:test-01-2020.09.04',
metric='avg:elasticsearch.index.total.docs.count')

But it seems to problem, because the date is static...

So I change query likes
q='elasticsearch.index.name:test-01-*' but it seems to get all documents count...

Is there any solution for set current time ranges?

i want to change query likes
.es(
index=test*,
timefield=@timestamp,
q='elasticsearch.index.name:test-01-* AND timernage:current time',
metric='avg:elasticsearch.index.total.docs.count')

I try to set time ranges likes
q='@timestamp:[now-15m/d TO now/d] AND elasticsearch.index.name:df-pipeline-dev_airflow-worker-*' But it seems get all documents include all yyyy.mm.dd index!

Thanks!

The time range is controlled by the time picker in the top right, why are you trying to use an additional query parameter for time range?

Yes you're right. ( I have some confused some metricbeat field side.)
For timerange, I use the time picker in the top right.

Thanks you very much your reply!