Click the button below to deploy the data project to Tinybird.
Deploy projectThis will automatically set up all of the resources you need to collect, analyze, and publish your logs.
Starter Kit
Use this Starter Kit to quickly deploy all the assets you need to ingest, query, and analyze your application logs.
Click the button below to deploy the data project to Tinybird.
Deploy projectThis will automatically set up all of the resources you need to collect, analyze, and publish your logs.
The Starter Kit includes an open source Next.js dashboard, which uses the amazing Tremor visualization library to create beautiful charts and metrics from your logs.
You can deploy the dashboard to Vercel for free with one click:
Deploy dashboard to Vercel...or use our hosted demo dashboard if you just want to take a look around. Visit the URL below, and you'll be prompted for the app token that was created after Step 1.
https://log-analytics.tinybird.co/
Send your logs to Tinybird with a simple HTTP request.
You can send your logs to the Tinybird Events API, which is a simple HTTP endpoint that accepts POST requests with NDJSON data. Write your own logger, or use any existing logging library, to push your logs to Tinybird.
The Starter Kit includes some example WebApp Loggers, like TypeScript + Next.js or Python + FastAPI, but you can write your own for any language or framework.
Use the code below to send data to Tinybird using the Events API.
async function sendEvents(events){ const date = new Date(); events.forEach(ev => { ev.date = date.toISOString() }); const headers = { 'Authorization': 'Bearer TOKEN_HERE', }; const url = 'https://api.tinybird.co/' // you may be on a different host const rawResponse = await fetch(`${url}v0/events?name=hfi_multiple_events_js`, { method: 'POST', body: events.map(JSON.stringify).join(' '), headers: headers, }); const content = await rawResponse.json(); console.log(content); } sendEvents([ { 'city': 'Jamaica', 'action': 'view'}, { 'city': 'Jamaica', 'action': 'click'}, ]);
Or, if you just want to test the functionality, you can generate some fake data from within the dashboard.
Why use this Starter Kit?
It’s language-agnostic
There’s no client libraries or custom data formats. The Log Analytics Starter Kit uses the Tinybird Events API, which is a standard HTTP endpoint for high-frequency log ingestion. Just send a POST request with your logs in JSON. Tinybird will do the rest.
Events API GuideIt’s based on REST APIs
Tinybird lets you query your log data with SQL and instantly publish those queries as low-latency REST APIs. The Starter Kit includes interesting metrics and a pre-built dashboard to get you started.
It’s completely customizable
The Starter Kit includes plenty of example metrics to get you started, but you can customize them to whatever extent you need, with nothing but simple SQL. And by the way, exploratory queries in the Tinybird UI are always free. Prototype your heart out.
Fork the repo