Query data with InfluxQL
InfluxDB 3 Core is in Public Beta
InfluxDB 3 Core is in public beta and available for testing and feedback, but is not meant for production use yet. Both the product and this documentation are works in progress. We welcome and encourage your input about your experience with the beta and invite you to join our public channels for updates and to share feedback.
Learn to query data in InfluxDB 3 Core using InfluxQL.
- Explore your schema with InfluxQL
- Perform a basic InfluxQL query
- Aggregate data with InfluxQL
- Troubleshoot InfluxQL errors
Explore your schema with InfluxQL
Use InfluxQL SHOW
statements to return information about your data schema.
List measurements
SHOW MEASUREMENTS
List field keys in a measurement
SHOW FIELD KEYS FROM "measurement"
List tag keys in a measurement
SHOW TAG KEYS FROM "measurement"
List tag values for a specific tag key
SHOW TAG VALUES FROM "measurement" WITH KEY = "tag-key" WHERE time > now() - 1d
Perform a basic InfluxQL query
A basic InfluxQL query that queries data from InfluxDB most commonly includes SELECT
, FROM
, and WHERE
clauses.
SELECT temp, room FROM home WHERE time >= now() - 1d
Aggregate data with InfluxQL
Use InfluxQL aggregate and selector functions to perform aggregate operations on your time series data.
Aggregate fields by groups
SELECT
MEAN(temp) AS mean,
FIRST(hum) as first,
FROM home
GROUP BY tag
Aggregate by time-based intervals
SELECT
MEAN(temp),
sum(hum),
FROM home
WHERE time >= now() - 24h
GROUP BY time(1h),room
Troubleshoot InfluxQL errors
Learn how to troubleshoot and fix common InfluxQL errors.
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB 3 Core and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.