select measurement csv influx code example
Example: influxdb export to csv
influx -database 'database_name' -execute 'SELECT * FROM table_name' -format csv > test.csv
influx -database 'database_name' -execute 'SELECT * FROM table_name' -format csv > test.csv