---
title: "Jobs log: Improved o11y for background jobs"
excerpt: "Now it’s easier than ever to build production-level observability of your Tinybird data."
authors: "Alejandro Martin"
categories: "Product updates"
createdOn: "2024-06-18 00:00:00"
publishedOn: "2024-06-20 00:00:00"
updatedOn: "2025-04-24 00:00:00"
status: "published"
---

<p>Today we’re launching the <code>jobs_log</code> a new Service Data Source to dramatically improve insight into background jobs. As with any Service Data Source, just query it like a table (<code>SELECT * FROM tinybird.jobs_log</code>) to start analyzing background jobs in your Tinybird Workspace.</p><p>Tinybird is the real-time analytics platform for user-facing applications. Tinybird keeps data fast and fresh by working incrementally on data as it arrives. However, there are still various uses for long-running background tasks. You might want to create scheduled, static snapshots of a dataset using Copy Pipes, or backfill an incremental materialized view with historical data. These run as background jobs.</p><p>Until today, visibility into jobs was only possible via the Jobs API, which has limitations on the time window, log retention, and level of details. The Jobs API will remain available and is useful as a simple way to look up the status of a single job. For production-level monitoring, the <code>jobs_log</code> bring major improvements to job observability:</p><ul>
<li><strong>Detailed job insights:</strong> Monitor background job runs, gather statistics for specific job types, track ongoing jobs, identify errored jobs, and analyze queue timings.</li>
<li><strong>Extended Log Retention:</strong> Access logs of background jobs for up to 12 months.</li>
<li><strong>Unlimited Records:</strong> There is no limit to the number of records in the log, so all jobs and events will be tracked and available for the entire retention period.</li>
<li><strong>Centralized Monitoring:</strong> Available in all Tinybird Workspaces as tinybird.jobs_log. For Organization Admins, you can monitor jobs across all Organization Workspaces using <code>organization.jobs_log</code>.</li>
</ul>
<h2 id="how-to-use-it">How to use it</h2><p>The <code>jobs_log</code> can be used like any other Data Source. In a Pipe or Playground, write a SQL query using <code>tinybird.jobs_log</code> as the table in your <code>FROM</code> clause. As it’s just a Data Source, you can use this to publish API Endpoint and build Charts over your observability data.</p><p>Here’s an example of querying the <code>jobs_log</code> to build a time series of job status for the past week:</p>
<!--kg-card-begin: html-->
<iframe width="100%" src="https://snippets.tinybird.co/XQAAAAJnAQAAAAAAAABBKUqGk9nLKv3CTBDC4LuYNcBHuuwS8Ecx7f--zqO3jaArEKeMY19mpxVSgIQS7odFjHzJeYh0zxipYvzjU-aM1NO8TqMC22r0bgYiMsbwMFzVSrt1mq7husc7BUKxQmSNh0rRAo9bWOwl_ZqLLrA1ht9wEQewh7peYzl0IXfdumjDTULIX6J7u978C8MU9YzFXYH0XVm80TTYOA4TC0MDvTXRCUJ6JJUWpZT0fHhR-zg7QD84ZtdLPGgfsGGASXLGBnHbAyOm5Uucyawd2we86eKEiOO57pJG31cbMnGUn2OIgCwQDsSXv_q7ZHKBFQW9-cqh8GgpA1DBt26qWBx33pOf__EIBOk/embed"></iframe>
<!--kg-card-end: html-->
<p>Just like any other Data Source, you can query <code>jobs_log</code> in a Pipe to create API Endpoints and Charts. Here's a quick visualization over our status time series using <a href="https://www.tinybird.co/docs/publish/charts" rel="noreferrer">Tinybird Charts</a>:</p><p></p>
<!--kg-card-begin: html-->
<iframe
src="https://app.tinybird.co/gcp/europe-west3/endpoints/job_status_over_time/charts/f2721827-884f-443e-a8fe-f3d97ad209a9?token=p.eyJ1IjogIjU1ODc1NjFmLTA3NmYtNDJhNC1iYjVlLTY5YjcwYWJmODYzYiIsICJpZCI6ICJjOGZhZjQ0My01OGU2LTRkM2MtOTc2Mi03NGEwMjliMjI4YjciLCAiaG9zdCI6ICJldV9zaGFyZWQifQ.H4huWl0Mizdr9V0yzr6K1B396uxrTUT5ktO-J_QHHs4"
width="100%"
height="500px"
style="border: none;"
>
</iframe>
<!--kg-card-end: html-->
<p>And here’s an example showing how an Organization Admin can use the <code>organization.jobs_log</code> to determine the Workspace creating the most jobs:</p>
<!--kg-card-begin: html-->
<iframe width="100%" src="https://snippets.tinybird.co/XQAAAALgAAAAAAAAAABBKUqGk9nLKzhOWaVcEtCm_OAFyOa5MnJFi6Xntx9KHQrUV711JLSDLC4qbvRz03N6TiN3NlyfIxtJYCeoBt78Lni5C5GPTN2J3ZaQaR2hG4R8e9AyTVCl1EG1vHg0lULiPBGYR-05AaN0KVzlqOTmpKkwJy8PY9RV2T11u3xVEYlTAiihEpty13vNdLmIA75yam_8jSC7SqkidFfoshDFlnl9RdqiZfY29O-JvKf_Wxf67KkX4L__yCiAAA/embed"></iframe>
<!--kg-card-end: html-->
<p>And you can visualize this as a top 5 bar list using <a href="https://www.tinybird.co/docs/publish/charts" rel="noreferrer">Tinybird Charts</a> like so:</p><p></p>
<!--kg-card-begin: html-->
<iframe
src="https://app.tinybird.co/gcp/europe-west3/endpoints/top_workspaces_by_job_count_pipe/charts/674f1bd7-8509-4792-86b5-203c9141eeaf?token=p.eyJ1IjogIjU1ODc1NjFmLTA3NmYtNDJhNC1iYjVlLTY5YjcwYWJmODYzYiIsICJpZCI6ICIxMmYyNDc3Ni05MDZiLTQzMWItOGY2Mi1hZWM4ZTY1ZjFjODgiLCAiaG9zdCI6ICJldV9zaGFyZWQifQ.2OtKJdY1BiO2Gmv46N24RRy1gqJZ8v0ModXO48lc5m4"
width="100%"
height="300px"
style="border: none;"
>
</iframe>
<!--kg-card-end: html-->
<p>If you're not yet a customer, you can <a href="https://www.tinybird.co/signup" rel="noreferrer">get started with Tinybird today</a>, with no credit card required. Check out our <a href="https://www.tinybird.co/docs/monitoring/jobs"><u>documentation</u></a> (including <a href="https://www.tinybird.co/docs/monitoring/jobs#advanced-use-cases" rel="noreferrer">advanced use cases</a> we've employed with some of our customers) to learn more about the <code>jobs_log</code>, and join our <a href="https://www.tinybird.co/docs/community"><u>Slack community</u></a> if you have any questions!</p>
