Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

influxdb data/table be downloaded as csv file?

Influxdb is a time series database which stores data and its attributes in the tables, commonly known as measurements.

Can the tables in databases of influxdb be fetched to local system in csv format?

like image 941
surya rahul Avatar asked Jun 09 '18 04:06

surya rahul


People also ask

How do I download data from InfluxDB?

Export a task in the InfluxDB UI Select Export. Downloading or save the task export file using one of the following options: Click Download JSON to download the exported JSON file.

Does InfluxDB have tables?

InfluxDB data elements are stored in time-structured merge tree (TSM) and time series index (TSI) files to efficiently compact stored data. InfluxDB also provides a tabular data schema that includes the following: Annotation rows.

How is InfluxDB data stored?

The storage engine handles data from the point an API write request is received through writing data to the physical disk. Data is written to InfluxDB using line protocol sent via HTTP POST request to the /api/v2/write endpoint or the /write 1. x compatibility endpoint.


1 Answers

In CLI following command can be used to download tables on the local system:

influx -database 'database_name' -execute 'SELECT * FROM table_name' -format csv > test.csv
like image 163
surya rahul Avatar answered Sep 26 '22 02:09

surya rahul