---
title: Write data to InfluxDB
description: Collect and write time series data to InfluxDB Cloud and InfluxDB OSS.
url: https://docs.influxdata.com/influxdb/v2/write-data/
estimated_tokens: 768
product: InfluxDB OSS v2
version: v2
---

# Write data to InfluxDB

This page documents an earlier version of InfluxDB OSS. [InfluxDB 3 Core](/influxdb3/core/) is the latest stable version.

#### API token hashing is enabled by default in InfluxDB OSS 2.9.0

Stronger token security: tokens are stored as hashes on disk, so a copy of the database file doesn’t expose usable tokens. Existing tokens are hashed on first startup and the original strings can’t be recovered afterward — **capture any plaintext tokens you still need before you upgrade**.

For more information, see [Token hashing](/influxdb/v2/admin/tokens/#token-hashing).

1. Learn the [best practices](/influxdb/v2/write-data/best-practices/) for writing data.
2. Discover how to write data [without coding](/influxdb/v2/write-data/no-code/), by [loading data source in the UI](/influxdb/v2/write-data/no-code/load-data/), or using [developer tools](/influxdb/v2/write-data/developer-tools/).
3. Do any of the following:
    -   [Troubleshoot the most common issues writing data](/influxdb/v2/write-data/troubleshoot/)
    -   [Delete data you no longer need](/influxdb/v2/write-data/delete-data/)
    -   [Query and explore data](/influxdb/v2/query-data/)
    -   [Process data](/influxdb/v2/process-data/)
    -   [Visualize data](/influxdb/v2/visualize-data/)
    -   [Migrate data](/influxdb/cloud/write-data/migrate-data/)
    -   [Monitor and alert](/influxdb/v2/monitor-alert/)

The following video discusses different ways to write data to InfluxDB:

#### Related

-   [Use Telegraf to write data](/influxdb/v2/write-data/no-code/use-telegraf/)
-   [/influxdb/v2/api/write-data/ InfluxDB v1 API /write endpoint](/influxdb/v2/api/write-data/%20InfluxDB%20v1%20API%20/write%20endpoint)
-   [Line protocol](/influxdb/v2/reference/syntax/line-protocol/)
-   [Annotated CSV](/influxdb/v2/reference/syntax/annotated-csv/)
-   [influx write](/influxdb/v2/reference/cli/influx/write/)
-   [Migrate data to InfluxDB](/influxdb/v2/write-data/migrate-data/)
-   [How to Ingest Data in InfluxDB (Video)](/resources/videos/ingest-data/)

[write](/influxdb/v2/tags/write/) [line protocol](/influxdb/v2/tags/line-protocol/)
