# Runbook Logs

## Overview

Runbook logs allows you to review recent and archived runbook executions (jobs).

<figure><img src="/files/2uwgcYBwzRy88f8NYDFV" alt=""><figcaption><p>Runbook Job List</p></figcaption></figure>

### Type and Category

Runbooks in RealmJoin Portal are scoped to either the organization (tenant), a device, a user or a group to align with [User, Group and Device management](/ugd-management/user-group-device-management.md).

Also, categories can be used to organize runbooks into specific topics. The default categories are "general", "mail" and "security".

Both type and category influence when/where a runbook will be offered in RealmJoin Portal and are reflected in Runbook logs to allow searching and sorting accordingly. See [Naming Conventions](/automation/runbooks/naming-conventions.md) to understand how type and category are assigned to a runbook.

### Search and Sort

You can search for jobs by job ID, name, type or category. The search will update as you type.

You can sort by most fields by clicking on the field's header (name).

### Job Details

Click on a job's ID to open the job's details page, which will show more metadata, the runbook's outputs and parameters. See [Runbook Job Details](/automation/runbooks/runbook-logs/runbook-job-details.md) for more information.

<figure><img src="/files/8z5CxMd8vABZbfPun0Ni" alt=""><figcaption><p>Runbook Job Details</p></figcaption></figure>

## Scheduled Jobs and Schedules

#### Scheduled Jobs

Click **Scheduled Jobs** to see all scheduled jobs in your Azure Automation Account, regardless of type/context.

<figure><img src="/files/5KwMa9aSOJaI3r0tWFJh" alt=""><figcaption><p>Scheduled Jobs</p></figcaption></figure>

You can **Delete** the scheduled job using the button to the right of the job. This will not delete the runbook, only the scheduled job.

See [Scheduling](/automation/runbooks/scheduling.md#assigning-schedules) if you wish to create new scheduled jobs.

#### Schedules

Click **Schedules** to view and manage available schedules for your runbooks.

See [Scheduling ](/automation/runbooks/scheduling.md#managing-schedules)to learn more.

## Archived Logs

Azure Automation will only keep runbook job logs for a limited time. RealmJoin offers to copy/archive runbook logs into a Log Analytics Workspace to preserve them for a longer time. This will only be available after you've correctly configured/onboarded [Log Analytics](/logs/log-analytics.md).

Please be aware that you have to modify the Workspace's retention time to accommodate your needs as this will limit how long archived logs can be stored.

Click **Archived** to switch from the recent logs in Azure Automation to those stored in Log Analytics.

<figure><img src="/files/uashTEx50P217OuRQTxk" alt=""><figcaption><p>Archived Runbook Job Logs List</p></figcaption></figure>

You can search and inspect these the same as the regular logs under **Recent**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.realmjoin.com/automation/runbooks/runbook-logs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
