docs-v2/content/flux/v0.x/stdlib/experimental/csv/from.md

1.1 KiB

title seotitle list_title description aliases menu weight flux/v0.x/tags introduced
csv.from() function Experimental csv.from() function csv.from() (experimental) The experimental `csv.from()` function retrieves annotated CSV from a URL.
/influxdb/v2.0/reference/flux/stdlib/experimental/csv/from/
/influxdb/cloud/reference/flux/stdlib/experimental/csv/from/
flux_0_x_ref
name parent
csv.from * csv-exp
401
inputs
0.64.0

The experimental csv.from() function retrieves [annotated CSV](/{{< latest "influxdb" >}}/reference/syntax/annotated-csv/) from a URL.

{{% note %}} The experimental csv.from() function is an alternative to the standard csv.from() function. {{% /note %}}

{{< keep-url >}}

import "experimental/csv"

csv.from(url: "http://localhost:8086/")

Parameters

url

The URL to retrieve annotated CSV from.

Examples

Query annotated CSV data from a remote URL
import "experimental/csv"

csv.from(url: "http://example.com/csv/example.csv")
    |> filter(fn: (r) => r._measurement == "example-measurement")