Skip to content

Logstash health_check API is always skipped regardless of mode #937

@rseldner

Description

@rseldner

Diagnostics version: 9.3.1

The logstash health report is always skipped, supposedly, due to its mode despite running in full mode. Subsequent APIs do get collected.
WARN co.elastic.support.rest.RestEntryConfig - logstash_health_report was bypassed due to mode


Based on the logic defined here, this should note get skipped with full mode

if ("full".equals(mode) == false && mode.equals(values.get("tags")) == false) {
return null;


diag generated in interactive mode:

./diagnostics.sh

outcome:

cat logstash-local-diagnostics-20251217-212350/diagnostic_manifest.json

{
  "mode" : "full",
  "product" : "logstash",
  "flags" : "BaseInputs{outputDir='/Users/redacted/Downloads/diagnostics-9.3.1'},ElasticRestClientInputs: {host='localhost', port=9600, proxyHost='', proxyPort=8080, user='', isPassword=false, pkiKeystore='', isPkiPass=false, pkiKeystorePass='', proxyUser='', isProxyPass=false, isSsl=false, skipVerification=false, scheme='http'},DiagnosticInputs: {, diagType='logstash-local', mode='full', remoteUser='null', keyfile='', isKeyFilePass=false', trustRemote=false', knownHostsFile='', sudo=false', remotePort=22, runner='cli'}",
  "diagnostic" : null,
  "type" : "logstash_diagnostic",
  "runner" : "cli",
  "version" : "0.0.0",
  "timestamp" : "2025-12-17T21:23:50.897Z"
}%  

head logstash-local-diagnostics-20251217-212350/diagnostics.log

14:23:48.652 [main] INFO  co.elastic.support.BaseService - Diagnostic logger reconfigured for inclusion into archive
-14:23:48.660 [main] WARN  co.elastic.support.rest.RestEntryConfig - logstash_health_report was bypassed due to mode

diag generated with explicit full mode

./diagnostics.sh --mode full --host localhost --port 9600 --type logstash-local
(also tested logstash-api)

ouctome:
➜ cat logstash-local-diagnostics-20251217-213534/diagnostic_manifest.json

{
  "mode" : "full",
  "product" : "logstash",
  "flags" : "BaseInputs{outputDir='/Users/redacted/Downloads/diagnostics-9.3.1'},ElasticRestClientInputs: {host='localhost', port=9600, proxyHost='', proxyPort=8080, user='', isPassword=false, pkiKeystore='', isPkiPass=false, pkiKeystorePass='', proxyUser='', isProxyPass=false, isSsl=false, skipVerification=false, scheme='http'},DiagnosticInputs: {, diagType='logstash-local', mode='full', remoteUser='null', keyfile='', isKeyFilePass=false', trustRemote=false', knownHostsFile='', sudo=false', remotePort=22, runner='cli'}",
  "diagnostic" : "9.3.1",
  "type" : "logstash_diagnostic",
  "runner" : "cli",
  "version" : "0.0.0",
  "timestamp" : "2025-12-17T21:35:34.928Z"
}%                     

➜ head logstash-local-diagnostics-20251217-213534/diagnostics.log

14:35:32.040 [main] INFO  co.elastic.support.BaseService - Diagnostic logger reconfigured for inclusion into archive
14:35:32.041 [main] INFO  co.elastic.support.diagnostics.commands.CheckDiagnosticVersion - Checking for diagnostic version updates.
-14:35:32.844 [main] WARN  co.elastic.support.rest.RestEntryConfig - logstash_health_report was bypassed due to mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions