

What is Flux?
Flux lang is a functional data scripting language designed for querying, processing, writing, analyzing, and acting on data from InfluxDB and many other sources like SQL Databases (Big Query, PostgreSQL, MS SQL Server), annotated CSVs, JSON, and Bigtable.
The purpose of Flux

“Flux is much more flexible because it is not just a query language... The ability to combine data from different sources is great.”
Dr. Angelo Fausti, Software Engineer, Vera C. Rubin Observatory
Why use Flux?
Flux lang is easy to learn with excellent readability making it comfortable to be productive. It has a command line interface and a web-based UI for point-and-click script building. As Flux is a composable language, developers can chain together functions or build custom functions that work specifically for bespoke applications.
In addition, since Flux queries are code, they can be tested and checked into source control systems, be tested in isolation, or for complex queries, be built from separately tested sub-components. Finally, Flux allows developers to work in their preferred method.
Flux Features
Multiple data sources
Extensible
Dynamic Types
InfluxDB Tasks
Integrations
Cross Compile
Flux basics
Data from anywhere
InfluxDB supports querying, joining, and transforming time series, geo location and data from your SQL data sources to help you gain the insights you need in your applications.
Resources
Intro to Flux
Watch this video introducing the Flux data structure. Watch nowJoins in Flux
Learn how to use the Join function in Flux and when to use Joins as opposed to Pivots. Watch nowPivots in Flux
Watch this video on how to Pivot data with Flux. Watch nowOptimizing Flux Queries
Watch this video on how to Pivot data with Flux. Watch nowFlux Task Offsets
Use offsets to know when a Flux task runs so you can account for late arriving data. Watch nowWork with Flux data types
A Flux data type defines the set of possible values and operations.
Learn more