Skip to content

Commit

Permalink
Update access-monitoring.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
djohns7 committed Aug 27, 2024
1 parent 60e3926 commit c2f3f34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/pages/admin-guides/access-controls/access-monitoring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ ORDER BY
Run custom audit query using `tctl audit query exec` command:

```code
$ tctl audit query exec 'select event_time,identity_user from cert_create order by event_date limit 1;' --days 7
$ tctl audit query exec 'select event_time,identity_user from cert_create order by event_date limit 1;'
[
{
"data": [
Expand All @@ -560,4 +560,5 @@ $ tctl audit query exec 'select event_time,identity_user from cert_create order
]
```

The query result is returned as a JSON array of arrays. The first array contains the column names, and the subsequent arrays contain the query results.
The query result is returned as a JSON array of arrays. The first array contains the column names, and the subsequent arrays contain the query results. By default, tctl audit query exec will search over the past 7 days.
You can specify an alternate timeframe with the --days=N flag.

0 comments on commit c2f3f34

Please sign in to comment.