PX4 log parser: ULog to CSV, as an API

Upload a .ulg file straight from the flight controller's SD card or QGroundControl and get back one flight-level CSV: GPS track, attitude, flight modes, battery and PX4's own warnings on a single timeline. No pyulog scripts, no merging dozens of topic files.

Free tier includes 100 API calls/month. No credit card required.

# Queue a PX4 ULog file
curl -X POST \
  https://dronelogapi.com/api/v2/logs/upload \
  -H "Authorization: Bearer YOUR_KEY" \
  -F "file=@17_12_47.ulg"

# 202 — queued for async processing
{
  "statusCode": 202,
  "message": "Flight log queued for processing.",
  "flightId": "9f2c8b3e-4b6a-4a1e-9c2d-7a1f6e0d5b21"
}
.ULG
PX4 ULog files, as recorded
1 CSV
One row per GPS fix, up to 10 Hz
Async*
Queued via job, poll for result
Any
Multicopter, fixed-wing, VTOL

From .ulg file to flight-level data

  1. Upload the ULog

    POST the .ulg file to the upload endpoint. PX4 is detected from the ULog header, so you don't name the vendor.

  2. We decode the topics

    The upload returns a flightId right away. In the background, the uORB topics are decoded and GPS, attitude, position, battery, RC and status are merged onto one timeline.

  3. Poll for the CSV

    Poll the status endpoint with your flightId. Once status is processed, the csv field holds the parsed flight.

What the parser pulls out of every ULog

  • GPS track

    Latitude, longitude, ground speed, north/east/down velocity, satellites used and fix type from vehicle_gps_position, plus distance from home.

  • Height and attitude

    Height above home from vehicle_local_position and roll, pitch and yaw in degrees from the vehicle_attitude quaternion.

  • Flight mode and state

    The PX4 flight mode (Position, Mission, Hold, Return, Offboard and the rest) from vehicle_status, with armed and landed state from the land detector.

  • Battery

    Voltage, current, remaining charge in percent, PX4's low/critical battery warning level and, when the power module reports them, capacity, temperature and cycle count.

  • RC input and PX4 messages

    Roll, pitch, throttle and yaw channels mapped through your RC_MAP_* parameters, receiver RSSI, and the warnings and notices PX4 logged during the flight.

  • Vehicle identity

    Vehicle type, flight controller board, hardware UUID and firmware version, plus local date and time from GPS time and the log's UTC offset.

Columns use the same names as our DJI and ArduPilot output (OSD.latitude, BATTERY.voltage [V], …), so a mixed fleet lands in one schema.

Not another ulog2csv

pyulog's ulog2csv

  • One CSV file per uORB topic and instance, often 50 or more per flight
  • Each topic at its own rate, timestamps in microseconds since boot
  • Quaternions, scaled integers and enum codes as stored
  • Best for tuning and deep debugging of every sensor

Dronelog API

  • One CSV per flight, one row per GPS fix (up to 10 Hz)
  • Latest attitude, battery, RC and mode state merged onto each row
  • Degrees, metres, percent and named flight modes, with local date and time
  • Best for flight records, fleet reporting and feeding your own app

Need every topic at full rate for PID tuning? Use ulog2csv or PX4 Flight Review. Need the flight summarised into rows your software can store? That is what this API returns.

Convert a PX4 .ulg log to CSV

Upload the log, then poll the status endpoint with the returned flightId. Polling doesn't count toward your monthly API usage.

# 1. Upload — returns 202 with a flightId
curl -X POST https://dronelogapi.com/api/v2/logs/upload \
  -H "Authorization: Bearer YOUR_KEY" \
  -F "file=@17_12_47.ulg"

# 2. Poll until status is "processed" (or "failed")
curl https://dronelogapi.com/api/v2/logs/status/FLIGHT_ID \
  -H "Authorization: Bearer YOUR_KEY"
import time
import requests

API = "https://dronelogapi.com/api/v2/logs"
HEADERS = {"Authorization": "Bearer YOUR_KEY"}

with open("17_12_47.ulg", "rb") as log:
    upload = requests.post(API + "/upload", headers=HEADERS, files={"file": log})
upload.raise_for_status()
flight_id = upload.json()["flightId"]

while True:
    result = requests.get(API + "/status/" + flight_id, headers=HEADERS).json()
    if result["status"] in ("processed", "failed"):
        break
    time.sleep(2)

if result["status"] == "failed":
    raise RuntimeError(result["error"])

with open("flight.csv", "w") as out:
    out.write(result["csv"])
import { openAsBlob } from "node:fs";
import { writeFile } from "node:fs/promises";
import { setTimeout as sleep } from "node:timers/promises";

const API = "https://dronelogapi.com/api/v2/logs";
const headers = { Authorization: "Bearer YOUR_KEY" };

const form = new FormData();
form.append("file", await openAsBlob("17_12_47.ulg"), "17_12_47.ulg");

const upload = await fetch(API + "/upload", { method: "POST", headers, body: form });
if (!upload.ok) throw new Error(await upload.text());
const { flightId } = await upload.json();

let result;
do {
  await sleep(2000);
  result = await (await fetch(API + "/status/" + flightId, { headers })).json();
} while (!["processed", "failed"].includes(result.status));

if (result.status === "failed") throw new Error(result.error);
await writeFile("flight.csv", result.csv);
GET /api/v2/logs/status/{flightId} — 200

{"status": "pending"}

{"status": "processed", "csv": "CUSTOM.date [local],CUSTOM.updateTime [local],OSD.flyTime,OSD.latitude,..."}

{"status": "failed", "error": "..."}

Full request and error reference in the API documentation. Flying DJI too? See the DJI flight log parser.

PX4 log parser — common questions

How do I convert a PX4 ULog (.ulg) file to CSV?

POST the .ulg file to /api/v2/logs/upload with your API key. You get a flightId back straight away; poll /api/v2/logs/status/{flightId} until status is processed, then read the csv field. The result is one CSV for the whole flight, not one file per topic.

Where do I find the .ulg log for a flight?

PX4 writes ULog files to the flight controller's SD card under log/<date>/, named by the time logging started (for example log/2026-11-20/17_12_47.ulg). You can copy them off the card or download them over MAVLink in QGroundControl under Analyze Tools > Log Download.

Which PX4 versions and vehicles are supported?

The parser reads the standard ULog format and the uORB topics PX4 logs by default. We have tested it on logs from PX4 v1.11 to v1.17 on multicopter, fixed-wing VTOL and SITL logs, including the change to degree-based GPS fields in v1.14. It is not tied to a specific flight controller board.

Does it export every ULog topic?

No. It builds a flight-level CSV from GPS, local position, attitude, home position, vehicle status, land detector, battery and RC input, plus logged messages. High-rate sensor, estimator and controller topics are not included; for tuning work use pyulog's ulog2csv or PX4 Flight Review.

Why did my PX4 log return an empty CSV?

Rows are anchored on GPS fixes, so a log recorded without a GPS position fix, such as an indoor or bench flight, produces no rows. The status endpoint still reports processed so you can tell it apart from a log that failed to decode.

Why is PX4 processing asynchronous?

ULog files from longer flights run to tens of megabytes, so the upload returns a flightId with a 202 status and the log is decoded in the background. Poll the status endpoint until it is processed. Status checks don't count toward your monthly usage.

Is there a free way to try the parser?

Every account gets 100 free API calls per month, no credit card required. That is enough to parse real logs and check the output before you choose a paid plan.

Stop stitching ULog topics together by hand

Get your API key in 30 seconds. 100 free calls per month, no credit card needed.