csv.from() function

The csv.from() function is experimental and subject to change at any time. By using this function, you accept the risks of experimental functions.

The experimental csv.from() function retrieves annotated CSV from a URL.

The experimental csv.from() function is an alternative to the standard csv.from() function.

Function type: Input

import "experimental/csv"

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



The URL to retrieve annotated CSV from.

Data type: String


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

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

Function definition

package csv

import c "csv"
import "experimental/http"

from = (url) => c.from(csv: string(v: http.get(url: url).body))

New! Cloud or OSS?

InfluxDB OSS 2.0 now generally available!

InfluxDB OSS 2.0 is now generally available and ready for production use. See the InfluxDB OSS 2.0 release notes.

For information about upgrading to InfluxDB OSS 2.0, see: