Sample data
Sample datasets are used throughout the InfluxDB 3 Enterprise documentation to demonstrate functionality. Use the following sample datasets to replicate provided examples.
- Home sensor data
- Home sensor actions data
- NOAA Bay Area weather data
- Bitcoin price data
- Random numbers sample data
Home sensor data
Includes simulated hourly home sensor data with anomalous sensor readings to demonstrate processing and alerting on time series data. To customize timestamps in the dataset, use the button in the lower right corner of the page.
Time Range
2025-04-23T08:00:00Z to 2025-04-23T20:00:00Z (Customizable)
Schema
- home (table)
- tags:
- room
- Kitchen
- Living Room
- room
- fields:
- co (integer)
- temp (float)
- hum (float)
- tags:
Write home sensor data to InfluxDB
Write the home sensor data to InfluxDB
Use the influxdb3
CLI, InfluxDB v3 API, InfluxDB v2 API, or InfluxDB v1 API to write the
home sensor sample data to InfluxDB 3 Enterprise.
influxdb3 write \
--token AUTH_TOKEN \
--database DATABASE_NAME \
'home,room=Living\ Room temp=21.1,hum=35.9,co=0i 1745395200
home,room=Kitchen temp=21.0,hum=35.9,co=0i 1745395200
home,room=Living\ Room temp=21.4,hum=35.9,co=0i 1745398800
home,room=Kitchen temp=23.0,hum=36.2,co=0i 1745398800
home,room=Living\ Room temp=21.8,hum=36.0,co=0i 1745402400
home,room=Kitchen temp=22.7,hum=36.1,co=0i 1745402400
home,room=Living\ Room temp=22.2,hum=36.0,co=0i 1745406000
home,room=Kitchen temp=22.4,hum=36.0,co=0i 1745406000
home,room=Living\ Room temp=22.2,hum=35.9,co=0i 1745409600
home,room=Kitchen temp=22.5,hum=36.0,co=0i 1745409600
home,room=Living\ Room temp=22.4,hum=36.0,co=0i 1745413200
home,room=Kitchen temp=22.8,hum=36.5,co=1i 1745413200
home,room=Living\ Room temp=22.3,hum=36.1,co=0i 1745416800
home,room=Kitchen temp=22.8,hum=36.3,co=1i 1745416800
home,room=Living\ Room temp=22.3,hum=36.1,co=1i 1745420400
home,room=Kitchen temp=22.7,hum=36.2,co=3i 1745420400
home,room=Living\ Room temp=22.4,hum=36.0,co=4i 1745424000
home,room=Kitchen temp=22.4,hum=36.0,co=7i 1745424000
home,room=Living\ Room temp=22.6,hum=35.9,co=5i 1745427600
home,room=Kitchen temp=22.7,hum=36.0,co=9i 1745427600
home,room=Living\ Room temp=22.8,hum=36.2,co=9i 1745431200
home,room=Kitchen temp=23.3,hum=36.9,co=18i 1745431200
home,room=Living\ Room temp=22.5,hum=36.3,co=14i 1745434800
home,room=Kitchen temp=23.1,hum=36.6,co=22i 1745434800
home,room=Living\ Room temp=22.2,hum=36.4,co=17i 1745438400
home,room=Kitchen temp=22.7,hum=36.5,co=26i 1745438400'
- Copy
- Fill window
curl -v "http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto&accept_partial=true" \
--data-raw "home,room=Living\ Room temp=21.1,hum=35.9,co=0i 1735545600
home,room=Kitchen temp=21.0,hum=35.9,co=0i 1735545600
home,room=Living\ Room temp=21.4,hum=35.9,co=0i 1735549200
home,room=Kitchen temp=23.0,hum=36.2,co=0i 1735549200
home,room=Living\ Room temp=21.8,hum=36.0,co=0i 1735552800
home,room=Kitchen temp=22.7,hum=36.1,co=0i 1735552800
home,room=Living\ Room temp=22.2,hum=36.0,co=0i 1735556400
home,room=Kitchen temp=22.4,hum=36.0,co=0i 1735556400
home,room=Living\ Room temp=22.2,hum=35.9,co=0i 1735560000
home,room=Kitchen temp=22.5,hum=36.0,co=0i 1735560000
home,room=Living\ Room temp=22.4,hum=36.0,co=0i 1735563600
home,room=Kitchen temp=22.8,hum=36.5,co=1i 1735563600
home,room=Living\ Room temp=22.3,hum=36.1,co=0i 1735567200
home,room=Kitchen temp=22.8,hum=36.3,co=1i 1735567200
home,room=Living\ Room temp=22.3,hum=36.1,co=1i 1735570800
home,room=Kitchen temp=22.7,hum=36.2,co=3i 1735570800
home,room=Living\ Room temp=22.4,hum=36.0,co=4i 1735574400
home,room=Kitchen temp=22.4,hum=36.0,co=7i 1735574400
home,room=Living\ Room temp=22.6,hum=35.9,co=5i 1735578000
home,room=Kitchen temp=22.7,hum=36.0,co=9i 1735578000
home,room=Living\ Room temp=22.8,hum=36.2,co=9i 1735581600
home,room=Kitchen temp=23.3,hum=36.9,co=18i 1735581600
home,room=Living\ Room temp=22.5,hum=36.3,co=14i 1735585200
home,room=Kitchen temp=23.1,hum=36.6,co=22i 1735585200
home,room=Living\ Room temp=22.2,hum=36.4,co=17i 1735588800
home,room=Kitchen temp=22.7,hum=36.5,co=26i 1735588800"
- Copy
- Fill window
curl --request POST \
http://localhost:8181/api/v2/write?bucket=DATABASE_NAME&precision=s \
--header "Authorization: Bearer AUTH_TOKEN" \
--header "Content-Type: text/plain; charset=utf-8" \
--header "Accept: application/json" \
--data-binary "
home,room=Living\ Room temp=21.1,hum=35.9,co=0i 1745395200
home,room=Kitchen temp=21.0,hum=35.9,co=0i 1745395200
home,room=Living\ Room temp=21.4,hum=35.9,co=0i 1745398800
home,room=Kitchen temp=23.0,hum=36.2,co=0i 1745398800
home,room=Living\ Room temp=21.8,hum=36.0,co=0i 1745402400
home,room=Kitchen temp=22.7,hum=36.1,co=0i 1745402400
home,room=Living\ Room temp=22.2,hum=36.0,co=0i 1745406000
home,room=Kitchen temp=22.4,hum=36.0,co=0i 1745406000
home,room=Living\ Room temp=22.2,hum=35.9,co=0i 1745409600
home,room=Kitchen temp=22.5,hum=36.0,co=0i 1745409600
home,room=Living\ Room temp=22.4,hum=36.0,co=0i 1745413200
home,room=Kitchen temp=22.8,hum=36.5,co=1i 1745413200
home,room=Living\ Room temp=22.3,hum=36.1,co=0i 1745416800
home,room=Kitchen temp=22.8,hum=36.3,co=1i 1745416800
home,room=Living\ Room temp=22.3,hum=36.1,co=1i 1745420400
home,room=Kitchen temp=22.7,hum=36.2,co=3i 1745420400
home,room=Living\ Room temp=22.4,hum=36.0,co=4i 1745424000
home,room=Kitchen temp=22.4,hum=36.0,co=7i 1745424000
home,room=Living\ Room temp=22.6,hum=35.9,co=5i 1745427600
home,room=Kitchen temp=22.7,hum=36.0,co=9i 1745427600
home,room=Living\ Room temp=22.8,hum=36.2,co=9i 1745431200
home,room=Kitchen temp=23.3,hum=36.9,co=18i 1745431200
home,room=Living\ Room temp=22.5,hum=36.3,co=14i 1745434800
home,room=Kitchen temp=23.1,hum=36.6,co=22i 1745434800
home,room=Living\ Room temp=22.2,hum=36.4,co=17i 1745438400
home,room=Kitchen temp=22.7,hum=36.5,co=26i 1745438400
"
- Copy
- Fill window
curl --request POST \
http://localhost:8181/write?db=DATABASE_NAME&precision=s \
--header "Authorization: Bearer AUTH_TOKEN" \
--header "Content-type: text/plain; charset=utf-8" \
--data-binary "
home,room=Living\ Room temp=21.1,hum=35.9,co=0i 1745395200
home,room=Kitchen temp=21.0,hum=35.9,co=0i 1745395200
home,room=Living\ Room temp=21.4,hum=35.9,co=0i 1745398800
home,room=Kitchen temp=23.0,hum=36.2,co=0i 1745398800
home,room=Living\ Room temp=21.8,hum=36.0,co=0i 1745402400
home,room=Kitchen temp=22.7,hum=36.1,co=0i 1745402400
home,room=Living\ Room temp=22.2,hum=36.0,co=0i 1745406000
home,room=Kitchen temp=22.4,hum=36.0,co=0i 1745406000
home,room=Living\ Room temp=22.2,hum=35.9,co=0i 1745409600
home,room=Kitchen temp=22.5,hum=36.0,co=0i 1745409600
home,room=Living\ Room temp=22.4,hum=36.0,co=0i 1745413200
home,room=Kitchen temp=22.8,hum=36.5,co=1i 1745413200
home,room=Living\ Room temp=22.3,hum=36.1,co=0i 1745416800
home,room=Kitchen temp=22.8,hum=36.3,co=1i 1745416800
home,room=Living\ Room temp=22.3,hum=36.1,co=1i 1745420400
home,room=Kitchen temp=22.7,hum=36.2,co=3i 1745420400
home,room=Living\ Room temp=22.4,hum=36.0,co=4i 1745424000
home,room=Kitchen temp=22.4,hum=36.0,co=7i 1745424000
home,room=Living\ Room temp=22.6,hum=35.9,co=5i 1745427600
home,room=Kitchen temp=22.7,hum=36.0,co=9i 1745427600
home,room=Living\ Room temp=22.8,hum=36.2,co=9i 1745431200
home,room=Kitchen temp=23.3,hum=36.9,co=18i 1745431200
home,room=Living\ Room temp=22.5,hum=36.3,co=14i 1745434800
home,room=Kitchen temp=23.1,hum=36.6,co=22i 1745434800
home,room=Living\ Room temp=22.2,hum=36.4,co=17i 1745438400
home,room=Kitchen temp=22.7,hum=36.5,co=26i 1745438400
"
- Copy
- Fill window
Replace the following in the sample script:
DATABASE_NAME
: the name of database to write toAUTH_TOKEN
: your InfluxDB 3 Enterprise authorization tokenWhile in beta, InfluxDB 3 Enterprise does not require an authorization token. You can either omit the CLI
--token
option or the HTTPAuthorization
header or you can provide an arbitrary token string.
Home sensor actions data
Includes hypothetical actions triggered by data in the Get started home sensor data and is a companion dataset to that sample dataset. To customize timestamps in the dataset, use the button in the lower right corner of the page. This lets you modify the sample dataset to stay within the retention period of the database you write it to.
Time Range
2025-04-23T08:00:00Z to 2025-04-23T20:00:00Z (Customizable)
Schema
- home_actions (table)
- tags:
- room
- Kitchen
- Living Room
- action
- alert
- cool
- level
- ok
- warn
- room
- fields:
- description (string)
- tags:
Write home sensor actions data to InfluxDB
Write the home sensor actions data to InfluxDB
Use the influxdb3
CLI, InfluxDB v3 API, InfluxDB v2 API, or InfluxDB v1 API to write the
home sensor actions sample data to InfluxDB 3 Enterprise.
influxdb3 write \
--token AUTH_TOKEN \
--database DATABASE_NAME \
'home_actions,room=Kitchen,action=cool,level=ok description="Temperature at or above 23°C (23°C). Cooling to 22°C." 1745398800
home_actions,room=Kitchen,action=cool,level=ok description="Temperature at or above 23°C (23.3°C). Cooling to 22°C." 1745431200
home_actions,room=Kitchen,action=cool,level=ok description="Temperature at or above 23°C (23.1°C). Cooling to 22°C." 1745434800
home_actions,room=Kitchen,action=alert,level=warn description="Carbon monoxide level above normal: 18 ppm." 1745431200
home_actions,room=Kitchen,action=alert,level=warn description="Carbon monoxide level above normal: 22 ppm." 1745434800
home_actions,room=Kitchen,action=alert,level=warn description="Carbon monoxide level above normal: 26 ppm." 1745438400
home_actions,room=Living\ Room,action=alert,level=warn description="Carbon monoxide level above normal: 14 ppm." 1745434800
home_actions,room=Living\ Room,action=alert,level=warn description="Carbon monoxide level above normal: 17 ppm." 1745438400'
- Copy
- Fill window
curl -v "http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto&accept_partial=true" \
--data-raw "home_actions,room=Kitchen,action=cool,level=ok description=\"Temperature at or above 23°C (23°C). Cooling to 22°C.\" 1739437200
home_actions,room=Kitchen,action=cool,level=ok description=\"Temperature at or above 23°C (23.3°C). Cooling to 22°C.\" 1739469600
home_actions,room=Kitchen,action=cool,level=ok description=\"Temperature at or above 23°C (23.1°C). Cooling to 22°C.\" 1739473200
home_actions,room=Kitchen,action=alert,level=warn description=\"Carbon monoxide level above normal: 18 ppm.\" 1739469600
home_actions,room=Kitchen,action=alert,level=warn description=\"Carbon monoxide level above normal: 22 ppm.\" 1739473200
home_actions,room=Kitchen,action=alert,level=warn description=\"Carbon monoxide level above normal: 26 ppm.\" 1739476800
home_actions,room=Living Room,action=alert,level=warn description=\"Carbon monoxide level above normal: 14 ppm.\" 1739473200
home_actions,room=Living Room,action=alert,level=warn description=\"Carbon monoxide level above normal: 17 ppm.\" 1739476800"
- Copy
- Fill window
curl --request POST \
http://localhost:8181/api/v2/write?bucket=DATABASE_NAME&precision=s \
--header "Authorization: Bearer AUTH_TOKEN" \
--header "Content-Type: text/plain; charset=utf-8" \
--header "Accept: application/json" \
--data-binary '
home_actions,room=Kitchen,action=cool,level=ok description="Temperature at or above 23°C (23°C). Cooling to 22°C." 1745398800
home_actions,room=Kitchen,action=cool,level=ok description="Temperature at or above 23°C (23.3°C). Cooling to 22°C." 1745431200
home_actions,room=Kitchen,action=cool,level=ok description="Temperature at or above 23°C (23.1°C). Cooling to 22°C." 1745434800
home_actions,room=Kitchen,action=alert,level=warn description="Carbon monoxide level above normal: 18 ppm." 1745431200
home_actions,room=Kitchen,action=alert,level=warn description="Carbon monoxide level above normal: 22 ppm." 1745434800
home_actions,room=Kitchen,action=alert,level=warn description="Carbon monoxide level above normal: 26 ppm." 1745438400
home_actions,room=Living\ Room,action=alert,level=warn description="Carbon monoxide level above normal: 14 ppm." 1745434800
home_actions,room=Living\ Room,action=alert,level=warn description="Carbon monoxide level above normal: 17 ppm." 1745438400
'
- Copy
- Fill window
curl --request POST \
http://localhost:8181/write?db=DATABASE_NAME&precision=s \
--header "Authorization: Bearer AUTH_TOKEN" \
--header "Content-type: text/plain; charset=utf-8" \
--data-binary '
home_actions,room=Kitchen,action=cool,level=ok description="Temperature at or above 23°C (23°C). Cooling to 22°C." 1745398800
home_actions,room=Kitchen,action=cool,level=ok description="Temperature at or above 23°C (23.3°C). Cooling to 22°C." 1745431200
home_actions,room=Kitchen,action=cool,level=ok description="Temperature at or above 23°C (23.1°C). Cooling to 22°C." 1745434800
home_actions,room=Kitchen,action=alert,level=warn description="Carbon monoxide level above normal: 18 ppm." 1745431200
home_actions,room=Kitchen,action=alert,level=warn description="Carbon monoxide level above normal: 22 ppm." 1745434800
home_actions,room=Kitchen,action=alert,level=warn description="Carbon monoxide level above normal: 26 ppm." 1745438400
home_actions,room=Living\ Room,action=alert,level=warn description="Carbon monoxide level above normal: 14 ppm." 1745434800
home_actions,room=Living\ Room,action=alert,level=warn description="Carbon monoxide level above normal: 17 ppm." 1745438400
'
- Copy
- Fill window
Replace the following in the sample script:
DATABASE_NAME
: the name of database to write toAUTH_TOKEN
: your InfluxDB 3 Enterprise authorization tokenWhile in beta, InfluxDB 3 Enterprise does not require an authorization token. You can either omit the CLI
--token
option or the HTTPAuthorization
header or you can provide an arbitrary token string.
NOAA Bay Area weather data
Includes daily weather metrics from three San Francisco Bay Area airports from January 1, 2020 to December 31, 2022. This sample dataset includes seasonal trends and is good for exploring time series use cases that involve seasonality.
Time Range
2020-01-01T00:00:00Z to 2022-12-31T00:00:00Z
Schema
- weather (table)
- tags:
- location
- Concord
- Hayward
- San Francisco
- location
- fields
- precip (float)
- temp_avg (float)
- temp_max (float)
- temp_min (float)
- wind_avg (float)
- tags:
Write the NOAA Bay Area weather data to InfluxDB
Write the NOAA Bay Area weather data to InfluxDB
Use the influxdb3
CLI, InfluxDB v3 API, InfluxDB v2 API, or InfluxDB v1 API to write the
NOAA Bay Area weather sample data to InfluxDB 3 Enterprise.
influxdb3 write \
--token AUTH_TOKEN \
--database DATABASE_NAME \
"$(curl --request GET https://docs.influxdata.com/downloads/bay-area-weather.lp)"
- Copy
- Fill window
curl -v "http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto&accept_partial=false" \
--data-binary "$(curl --request GET https://docs.influxdata.com/downloads/bay-area-weather.lp)"
- Copy
- Fill window
curl --request POST \
http://localhost:8181/api/v2/write?bucket=DATABASE_NAME \
--header "Authorization: Bearer AUTH_TOKEN" \
--header "Content-Type: text/plain; charset=utf-8" \
--header "Accept: application/json" \
--data-binary "$(curl --request GET https://docs.influxdata.com/downloads/bay-area-weather.lp)"
- Copy
- Fill window
curl --request POST \
http://localhost:8181/write?db=DATABASE_NAME \
--header "Authorization: Bearer AUTH_TOKEN" \
--header "Content-type: text/plain; charset=utf-8" \
--data-binary "$(curl --request GET https://docs.influxdata.com/downloads/bay-area-weather.lp)"
- Copy
- Fill window
Replace the following in the sample script:
DATABASE_NAME
: the name of database to write toAUTH_TOKEN
: your InfluxDB 3 Enterprise authorization tokenWhile in beta, InfluxDB 3 Enterprise does not require an authorization token. You can either omit the CLI
--token
option or the HTTPAuthorization
header or you can provide an arbitrary token string.
Bitcoin price data
The Bitcoin price sample dataset provides Bitcoin prices from 2023-05-01T00:00:00Z to 2023-05-15T00:00:00Z—Powered by CoinDesk.
Time Range
2023-05-01T00:19:00Z to 2023-05-14T23:48:00Z
Schema
- bitcoin (table)
- tags:
- code
- EUR
- GBP
- USD
- crypto
- bitcoin
- description
- Euro
- British Pound Sterling
- United States Dollar
- symbol
- € (€)
- £ (£)
- $ ($)
- code
- fields
- price (float)
- tags:
Write the Bitcoin sample data to InfluxDB
Write the Bitcoin price sample data to InfluxDB
Use the influxdb3
CLI, InfluxDB v3 API, InfluxDB v2 API, or InfluxDB v1 API to write the
Bitcoin price sample data to InfluxDB 3 Enterprise.
influxdb3 write \
--token AUTH_TOKEN \
--database DATABASE_NAME \
"$(curl --request GET https://docs.influxdata.com/downloads/bitcoin.lp)"
- Copy
- Fill window
curl -v "http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto&accept_partial=false" \
--data-binary "$(curl --request GET https://docs.influxdata.com/downloads/bitcoin.lp)"
- Copy
- Fill window
curl --request POST \
http://localhost:8181/write?db=DATABASE_NAME \
--header "Authorization: Bearer AUTH_TOKEN" \
--header "Content-type: text/plain; charset=utf-8" \
--data-binary "$(curl --request GET https://docs.influxdata.com/downloads/bitcoin.lp)"
- Copy
- Fill window
Replace the following in the sample script:
DATABASE_NAME
: the name of database to write toAUTH_TOKEN
: your InfluxDB 3 Enterprise authorization tokenWhile in beta, InfluxDB 3 Enterprise does not require an authorization token. You can either omit the CLI
--token
option or the HTTPAuthorization
header or you can provide an arbitrary token string.
Random numbers sample data
Includes two fields with randomly generated numbers reported every minute. Each field has a specific range of randomly generated numbers. This sample dataset is used to demonstrate mathematic operations and transformation functions.
Time Range
2023-01-01T00:00:00Z to 2023-01-01T12:00:00Z
Schema
- numbers (table)
- fields
- a (float between -1 and 1)
- b (float between -3 and 3)
- fields
Write the random number sample data to InfluxDB
Write the random number sample data to InfluxDB
Use the influxdb3
CLI, InfluxDB v3 API, InfluxDB v2 API, or InfluxDB v1 API to write the
random number sample data to InfluxDB 3 Enterprise.
influxdb3 write \
--token AUTH_TOKEN \
--database DATABASE_NAME \
"$(curl --request GET https://docs.influxdata.com/downloads/random-numbers.lp)"
- Copy
- Fill window
curl -v "http://localhost:8181/api/v3/write_lp?db=sensors&precision=auto&accept_partial=false" \
--data-binary "$(curl --request GET https://docs.influxdata.com/downloads/bitcoin.lp)"
- Copy
- Fill window
curl --request POST \
http://localhost:8181/api/v2/write?bucket=DATABASE_NAME \
--header "Authorization: Bearer AUTH_TOKEN" \
--header "Content-Type: text/plain; charset=utf-8" \
--header "Accept: application/json" \
--data-binary "$(curl --request GET https://docs.influxdata.com/downloads/random-numbers.lp)"
- Copy
- Fill window
curl --request POST \
http://localhost:8181/write?db=DATABASE_NAME \
--header "Authorization: Bearer AUTH_TOKEN" \
--header "Content-type: text/plain; charset=utf-8" \
--data-binary "$(curl --request GET https://docs.influxdata.com/downloads/random-numbers.lp)"
- Copy
- Fill window
Replace the following in the sample script:
DATABASE_NAME
: the name of database to write toAUTH_TOKEN
: your InfluxDB 3 Enterprise authorization tokenWhile in beta, InfluxDB 3 Enterprise does not require an authorization token. You can either omit the CLI
--token
option or the HTTPAuthorization
header or you can provide an arbitrary token string.
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 3 Enterprise and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.