From 644a2516fd91858894168ea255347fe768aad892 Mon Sep 17 00:00:00 2001 From: Stef Nestor <26751266+stefnestor@users.noreply.github.com> Date: Tue, 24 Jun 2025 10:02:20 -0600 Subject: [PATCH 1/2] Update logstah/diagnostic.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 👋 @theletterf, removing the tabs from just created [LS Diag](https://www.elastic.co/docs/troubleshoot/ingest/logstash/diagnostic) page from https://github.com/elastic/docs-content/pull/1726 because it sub-content'd wrong but afterwards if it's okay I decided I like not tabs for searchability 🙂 --- troubleshoot/ingest/logstash/diagnostic.md | 32 ++++++++++------------ 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/troubleshoot/ingest/logstash/diagnostic.md b/troubleshoot/ingest/logstash/diagnostic.md index c1e921e2e4..59f80ccb6c 100644 --- a/troubleshoot/ingest/logstash/diagnostic.md +++ b/troubleshoot/ingest/logstash/diagnostic.md @@ -50,29 +50,27 @@ To capture a {{ls}} diagnostic: The following command options are recommended: -::::{tab-set} -:::{tab-item} Unix-based systems + * Unix-based systems -```sh -sudo ./diagnostics.sh --type logstash-local --host 127.0.0.1 --port 9600 --bypassDiagVerify -``` -::: - -:::{tab-item} Windows + ```sh + sudo ./diagnostics.sh --type logstash-local --host 127.0.0.1 --port 9600 --bypassDiagVerify + ``` + + * Windows -```sh -.\diagnostics.bat --type logstash-local --host 127.0.0.1 --port 9600 --bypassDiagVerify -``` + ```sh + .\diagnostics.bat --type logstash-local --host 127.0.0.1 --port 9600 --bypassDiagVerify + ``` - ::::{tip} + ::::{tip} - You can run the script in three [modes](https://github.com/elastic/support-diagnostics#diagnostic-types): + You can run the script in three [modes](https://github.com/elastic/support-diagnostics#diagnostic-types): - * `local` (default, recommended): Polls the [{{ls}} API](https://www.elastic.co/docs/api/doc/logstash/), gathers operating system info, and captures node logs. - * `remote`: Establishes an ssh session to the applicable target server to pull the same information as `local`. - * `api`: Polls the [{{ls}} API](https://www.elastic.co/docs/api/doc/logstash/). All other data must be collected manually. + * `local` (default, recommended): Polls the [{{ls}} API](https://www.elastic.co/docs/api/doc/logstash/), gathers operating system info, and captures node logs. + * `remote`: Establishes an ssh session to the applicable target server to pull the same information as `local`. + * `api`: Polls the [{{ls}} API](https://www.elastic.co/docs/api/doc/logstash/). All other data must be collected manually. - :::: + :::: 3. When the script has completed, verify that no errors were logged to `diagnostic.log`. If the log file contains errors, refer to [Diagnose errors in `diagnostic.log`](#diagnostic-log-errors). From 69165823615414afb033a58ebc9697f1b1821c2f Mon Sep 17 00:00:00 2001 From: Stef Nestor <26751266+stefnestor@users.noreply.github.com> Date: Wed, 25 Jun 2025 07:49:15 -0600 Subject: [PATCH 2/2] feedback>indent --- troubleshoot/ingest/logstash/diagnostic.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/troubleshoot/ingest/logstash/diagnostic.md b/troubleshoot/ingest/logstash/diagnostic.md index 59f80ccb6c..a90a23287a 100644 --- a/troubleshoot/ingest/logstash/diagnostic.md +++ b/troubleshoot/ingest/logstash/diagnostic.md @@ -62,15 +62,15 @@ To capture a {{ls}} diagnostic: .\diagnostics.bat --type logstash-local --host 127.0.0.1 --port 9600 --bypassDiagVerify ``` - ::::{tip} - - You can run the script in three [modes](https://github.com/elastic/support-diagnostics#diagnostic-types): - - * `local` (default, recommended): Polls the [{{ls}} API](https://www.elastic.co/docs/api/doc/logstash/), gathers operating system info, and captures node logs. - * `remote`: Establishes an ssh session to the applicable target server to pull the same information as `local`. - * `api`: Polls the [{{ls}} API](https://www.elastic.co/docs/api/doc/logstash/). All other data must be collected manually. - - :::: + ::::{tip} + + You can run the script in three [modes](https://github.com/elastic/support-diagnostics#diagnostic-types): + + * `local` (default, recommended): Polls the [{{ls}} API](https://www.elastic.co/docs/api/doc/logstash/), gathers operating system info, and captures node logs. + * `remote`: Establishes an ssh session to the applicable target server to pull the same information as `local`. + * `api`: Polls the [{{ls}} API](https://www.elastic.co/docs/api/doc/logstash/). All other data must be collected manually. + + :::: 3. When the script has completed, verify that no errors were logged to `diagnostic.log`. If the log file contains errors, refer to [Diagnose errors in `diagnostic.log`](#diagnostic-log-errors).