---
title: Flux syntax
description: Flux is a functional data scripting language designed for querying, analyzing, and acting on data.
url: https://docs.influxdata.com/influxdb/v2/reference/syntax/flux/
estimated_tokens: 328
product: InfluxDB OSS v2
version: v2
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb/v2/reference/syntax/flux/
date: '2025-04-02T15:54:32-06:00'
lastmod: '2025-04-02T15:54:32-06:00'
---

This page documents an earlier version of InfluxDB OSS.[InfluxDB 3 Core](/influxdb3/core/) is the latest stable version.

#### API token hashing is enabled by default in InfluxDB OSS 2.9.0

Stronger token security: tokens are stored as hashes on disk, so a
copy of the database file doesn’t expose usable tokens. Existing
tokens are hashed on first startup and the original strings can’t
be recovered afterward — **capture any plaintext tokens you still
need before you upgrade**.

For more information, see [Token hashing](/influxdb/v2/admin/tokens/#token-hashing).

Flux is a functional data scripting language designed for querying, analyzing, and acting on data.

## Flux documentation

View the [Flux documentation](/flux/v0/) for more information about
the Flux syntax.

* [Get started with Flux](/flux/v0/get-started/)
* [Flux standard library](/flux/v0/stdlib/)
* [Flux language specification](/flux/v0/spec/)

**The following provide information about Flux and InfluxDB:**

### [Flux vs InfluxQL](/influxdb/v2/reference/syntax/flux/flux-vs-influxql/)

Flux is an alternative to InfluxQL and other SQL-like query languages for querying and analyzing data. Learn about what’s possible with Flux and how Flux compares to InfluxQL.

[syntax](/influxdb/v2/tags/syntax/)[flux](/influxdb/v2/tags/flux/)
