Search code examples
influxdb

Can i insert data to influxdb from a .log file


I have a file with data in a .log file. how can i get inserted into the database like the NOAA_water_database they suggest in the documentation. the link to the doc is below https://docs.influxdata.com/influxdb/v1.7/query_language/data_download/


Solution

  • CLI command influx has an option called -import to import data to influx. Refer more details here. In the same document you mentioned in question there is a command to import data to influx

    influx -import -path=NOAA_data.txt -precision=s -database=NOAA_water_database