> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/documentation/use-octoxlabs/reports/report-types/query-report.md).

# Query Report

Export the results of one or more saved queries from any inventory as PDF, CSV or XLSX.

The query report is the general-purpose report. It takes the records returned by saved queries and writes them to a file with the columns you choose. In the Report Builder it is the **OctoXLabs** template, and it is the default.

Use it when you want a list of assets, users, software, vulnerabilities or any other inventory record that a query can find.

### Settings

| Setting             | Value                                                                                                                                                                                     |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Report Template** | **OctoXLabs**                                                                                                                                                                             |
| **Export Type**     | **PDF**, **CSV** or **XLSX**                                                                                                                                                              |
| Inventory           | Devices, Users, Software, Vulnerabilities, Certificates, Services, Source Codes, AI services, Domains, Licenses or Policies. Choose it in the inventory selector of the **Builder** step. |
| Queries             | **CSV**: one query. **PDF** and **XLSX**: one or more queries.                                                                                                                            |
| Columns             | **Edit Columns** in the **Builder** step. Each inventory has its own default columns.                                                                                                     |

For the full builder steps, see Generate a Report.

### What the file contains

{% tabs %}
{% tab title="CSV" %}
One header row with the column names, then one row per record of the query. List values are joined with a semicolon, booleans become Yes or No, and date fields are formatted as date and time. If the query returns nothing, the file holds the header and the line "No data found".
{% endtab %}

{% tab title="XLSX" %}
One worksheet per query, named after the query, with a bold header row. When you pick more than one query, a **Table of Contents** worksheet is added first, listing each query title and its row count.
{% endtab %}

{% tab title="PDF" %}
A cover page with the report name, **Report Creation Date**, **Discovery Date** and the description, then one table per query. Pages after the cover carry page numbers and a logo in the header (your company logo with **Include Logo?**, otherwise the OctoXLabs logo). You can also add dashboards, see Dashboard Report.
{% endtab %}
{% endtabs %}

{% hint style="info" %}
Inventory lists in the console show at most 10,000 records for a query. The Report Builder is the way to export a larger set.
{% endhint %}

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Create and Save Queries</strong></td><td>Build the query the report runs.</td><td></td></tr><tr><td><strong>Dashboard Report</strong></td><td>Add dashboards to a PDF.</td><td></td></tr><tr><td><strong>Schedule a Report</strong></td><td>Run it on a schedule.</td><td></td></tr></tbody></table>
