Skip to main content

Module command_output

Module command_output 

Source
Expand description

Command-output processor for support-dump files.

Handles the > command + output-block shape that vendor diagnostic bundles use (Dataiku diag.txt, Elastic diagnostics, MongoDB mdiag, sosreport-style dumps):

Mon Jun 22 04:01:46 AM UTC 2026
> hostname --fqdn
dss-prod-01.corp.example.com

----------------------------------------------------------

> printenv
HOSTNAME=dss-prod-01
HTTPS_PROXY=http://user:secret@proxy:3128

A line starting with the prompt prefix opens a block: the rest of that line is the command string, and the block’s content is every following line until the next prompt line, a separator line (four or more dashes), or end of input. Field rules are matched against the command string with the usual glob syntax (hostname* matches hostname --fqdn).

  • A matching rule with sub_processor delegates the block content to that processor with the rule’s sub_fields — e.g. a printenv block to the env processor.
  • A matching rule without sub_processor treats the trimmed block as a single value and replaces it with the rule’s category (fits single-line outputs like hostname --fqdn); surrounding whitespace and blank lines are preserved.
  • Blocks with no matching rule, prompt lines, separators, timestamps, and any text outside a block are preserved byte-for-byte.

§Profile Options

KeyDefaultDescription
prompt_prefix"> "Line prefix that opens a command block.

Structs§

CommandOutputProcessor
Processor for > command + output-block support dumps.