From 0ef1c5d29bf2640caf4a452fb285894e9b727cb7 Mon Sep 17 00:00:00 2001 From: absolutelightning Date: Thu, 14 Sep 2023 17:07:06 +0530 Subject: [PATCH] fix docs --- command/debug/debug.go | 5 +++++ website/content/commands/debug.mdx | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/command/debug/debug.go b/command/debug/debug.go index 7ff03689f0d1..2e5d533ad8f9 100644 --- a/command/debug/debug.go +++ b/command/debug/debug.go @@ -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. ` diff --git a/website/content/commands/debug.mdx b/website/content/commands/debug.mdx index 0473c32cc8cf..6aa04dfe842b 100644 --- a/website/content/commands/debug.mdx +++ b/website/content/commands/debug.mdx @@ -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 @@ -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 +... +```