---
title: "ezgh trails"
description: "Trails, the audit log: look up events, or query them with SQL."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh trails

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh trails <command>
```

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh trails events`](/cli/reference/trails-events) | Look up events, newest first (the last 7 days unless `--from` says otherwise) |
| [`ezgh trails query`](/cli/reference/trails-query) | Trails Query: SQL over the organization's events, run asynchronously |

Source: https://docs.ezghcloud.com/cli/reference/trails/index.mdx
