Influxdb: how to make query where tag value is null?

Created on 19 Oct 2015  路  3Comments  路  Source: influxdata/influxdb

where somekey !=""
didn't work. So what's the right way?

Most helpful comment

UPDATE Influx 1.5.

To query values where tag value is null use:

SELECT * FROM "h2o_feet" WHERE "location" !~ /./

Check example here (example 5): https://docs.influxdata.com/influxdb/v1.5/query_language/data_exploration/#examples-14

All 3 comments

From https://influxdb.com/docs/v0.9/query_language/data_exploration.

"Return data where the tag key location has no tag value:

> SELECT * FROM h2o_feet WHERE location !~ /.*/"

thx. https://influxdb.com/docs/v0.9/query_language/data_exploration.html

UPDATE Influx 1.5.

To query values where tag value is null use:

SELECT * FROM "h2o_feet" WHERE "location" !~ /./

Check example here (example 5): https://docs.influxdata.com/influxdb/v1.5/query_language/data_exploration/#examples-14

Was this page helpful?
0 / 5 - 0 ratings