Documentation

View task run history and logs

When an InfluxDB task runs, a run record is created in the task’s history. Logs associated with each run provide relevant log messages, timestamps, and the exit status of the run attempt.

Use the InfluxDB user interface (UI), the influx command line interface (CLI), or the InfluxDB /api/v2 API to view task run histories and associated logs.

InfluxDB doesn’t guarantee that a task will run at the scheduled time. During busy periods, tasks are added to the run queue and processed in order of submission. The scheduled start time and actual start time can be viewed in the logs under scheduledFor and startedAt.

Task execution time doesn’t affect the time range queried. Tasks will query over the set time range as if executed on schedule regardless of delay.

View a task’s run history in the InfluxDB UI

  1. In the navigation menu on the left, select Tasks.

  2. Hover over the task you want to run and click the icon.

  3. Select View Task Runs.

View task run logs

To view logs associated with a run, click View Logs next to the run in the task’s run history.

View a task’s run history with the influx CLI

Use the influx task run list command to view a task’s run history.

# List all tasks to find the ID of the task to run
influx task list

# Use the task ID to view the run history of a task
influx task run list --task-id=0000000000000000
  • Copy
  • Fill window

Detailed run logs are not currently available in the influx CLI.

To retry failed task runs, see how to run tasks.

View logs for a task with the InfluxDB API

Use the /api/v2/tasks/TASK_ID/logs InfluxDB API endpoint to view the log events for a task and exclude additional task metadata.

View a task’s run history with the InfluxDB API

Use the /tasks/TASK_ID/runs InfluxDB API endpoint to view a task’s run history.

View task run logs with the InfluxDB API

To view logs associated with a run, use the /api/v2/tasks/TASK_ID/runs/RUN_ID/logs InfluxDB API endpoint.

To retry failed task runs, see how to run tasks.


Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

InfluxDB 3 Core and Enterprise are now in Beta

InfluxDB 3 Core and Enterprise are now available for beta testing, available under MIT or Apache 2 license.

InfluxDB 3 Core is a high-speed, recent-data engine that collects and processes data in real-time, while persisting it to local disk or object storage. InfluxDB 3 Enterprise is a commercial product that builds on Core’s foundation, adding high availability, read replicas, enhanced security, and data compaction for faster queries. A free tier of InfluxDB 3 Enterprise will also be available for at-home, non-commercial use for hobbyists to get the full historical time series database set of capabilities.

For more information, check out:

InfluxDB Cloud powered by TSM