Fake Sensor Log Generator

Simulated sensor log files for IoT testing

Ad placeholder (leaderboard)

This tool generates fake IoT sensor logs — rows of timestamped readings with device IDs, units, and status flags — so you can test data pipelines, log parsers, and alerting rules without wiring up real hardware. A configurable fraction of readings are deliberately pushed out of range and marked ALERT, giving you anomalies to detect.

How it works

Each sensor type has a realistic normal band, for example temperature 18 to 26 degrees C or CO2 400 to 1200 ppm. For each entry the tool decides whether it is a fault based on your fault-rate percentage:

  1. A normal reading is drawn uniformly from inside the sensor’s band and stamped OK.
  2. A fault reading is pushed below the minimum or above the maximum and stamped ALERT.
  3. The entry gets a rotating device id, the sensor name, the value, the unit, and an ISO 8601 timestamp.

Entries are spaced by your chosen interval with the most recent reading last, then rendered as CSV with a header row or as NDJSON with one object per line.

Tips and notes

  • Set the fault rate to a few percent to mimic occasional glitches, or higher to stress-test alert handling.
  • CSV is easiest for spreadsheets and quick eyeballing; NDJSON is what most log-ingestion and streaming systems expect.
  • The device id cycles through eight simulated devices, so you can test per-device grouping and filtering.
Ad placeholder (rectangle)