Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Sep 14, 2023
1 parent b6ae1af commit 0ef1c5d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions command/debug/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,11 @@ Usage: consul debug [options]
strongly recommend review of the data within the archive prior to
transmitting it.
To get information from past, -since flag can be used. It internally uses
hcdiag -consul -since
$ consul debug -since 1h
For a full list of options and examples, please see the Consul
documentation.
`
10 changes: 9 additions & 1 deletion website/content/commands/debug.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: commands
page_title: 'Commands: Debug'
description: >-
The `consul debug` command monitors an agent to capture a record its actions according to defined durations and intervals.
The `consul debug` command monitors an agent to capture a record its actions according to defined durations and intervals.
---

# Consul Debug
Expand Down Expand Up @@ -121,3 +121,11 @@ and `-duration` flags.
$ consul debug -interval=15s -duration=1m
...
```

To capture information since a particular time in past `-since` flag
can be used.

```shell-sesion
$ consul debug -since 1h
...
```

0 comments on commit 0ef1c5d

Please sign in to comment.