RDB/influxdb

influx measurements에서 데이터 추출

세모데 2019. 9. 3. 20:37

influxdb에서 데이터를 추출하고자 할때 아래와 같이 사용

 

influx -database 'test' -host 'localhost' -execute 'select * from "db_ret"."test"."test_table" where time >= '\''2019-08-31T07:20:00Z'\'' and time <= '\''2019-08-31T07:20:00Z'\'' and host = '\''s1'\''' -format 'csv'