docs-v2/content/influxdb/v2/query-data/flux/query-fields.md

1013 B

title seotitle description weight menu influxdb/v2/tags related list_code_example source
Query fields and tags Query fields and tags in InfluxDB using Flux Use `filter()` to query data based on fields, tags, or any other column value. `filter()` performs operations similar to the `SELECT` statement and the `WHERE` clause in InfluxQL and other SQL-like query languages. 201
influxdb_v2
parent
Query with Flux
query
select
where
/flux/v0/stdlib/universe/filter/
/influxdb/v2/query-data/flux/conditional-logic/
/influxdb/v2/query-data/flux/regular-expressions/
```js from(bucket: "example-bucket") |> range(start: -1h) |> filter(fn: (r) => r._measurement == "example-measurement" and r.tag == "example-tag") |> filter(fn: (r) => r._field == "example-field") ``` /shared/influxdb-v2/query-data/flux/query-fields.md