Write data to InfluxDB
Write data to InfluxDB Cloud Serverless using the following tools and methods:
Choose the write endpoint for your workload
When bringing existing v1 write workloads, use the InfluxDB Cloud Serverless HTTP API /write
endpoint.
When creating new write workloads, use the HTTP API /api/v2/write
endpoint.
Use Telegraf to write data
Use Telegraf to collect and write data to InfluxDB. Create Telegraf configurations in the InfluxDB UI or manually configure Telegraf.
Write CSV data to InfluxDB
Use the influx CLI
, InfluxDB user interface, or Telegraf to write CSV data to InfluxDB.
Write line protocol data to InfluxDB Cloud Serverless
Use Telegraf and API clients to write line protocol data to InfluxDB Cloud Serverless.
Best practices for writing data
Learn about the recommendations and best practices for writing data to InfluxDB.
Troubleshoot issues writing data
Troubleshoot issues writing data. Find response codes for failed writes. Discover how writes fail, from exceeding rate or payload limits, to syntax errors and schema conflicts.
Delete data
Use measurements, tags, and timestamp columns to avoid querying unwanted data.
Use the v1 write API
Use the InfluxDB v1 HTTP write API to write data stored in InfluxDB Cloud Serverless.
curl "https://cloud2.influxdata.com/write?db=DATABASE_NAME&rp=RETENTION_POLICY&precision=s" \
--header "Authorization: Token API_TOKEN" \
--header "Content-type: text/plain; charset=utf-8" \
--data-binary 'home,room=kitchen temp=72 1463683075'
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.