# Get host tag list within time range

**URL:** <https://community.influxdata.com/t/get-host-tag-list-within-time-range/28976>\
**Category:** InfluxDB 2\
**Tags:** grafana, flux\
**Created:** [March 8, 2023, 9:59pm UTC](https://community.influxdata.com/t/get-host-tag-list-within-time-range/28976 "2023-03-08T21:59:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![awickham](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/awickham/32/12901_2.png) [@awickham](https://community.influxdata.com/u/awickham)\
**Post date:** [March 8, 2023, 9:59pm UTC](https://community.influxdata.com/t/get-host-tag-list-within-time-range/28976/1 "2023-03-08T21:59:43Z")

</div>

Hey everyone,  
I’m fairly new with Flux here and I’ve got a Grafana dashboard I’m plugging in a query variable to gather the list of hosts:

import “influxdata/influxdb/schema”  
schema.tagValues(  
bucket: “telegraf”,  
tag: “host”,  
predicate: (r) =\> true,  
stop: -30m,  
)

Is it possible to get only the results of hosts within the last 24h?
