fx triage

generate a report of error conditions

usage: fx triage [--config <config-file>]
                 [--select <select-string>]
                 [--data <path-to-snapshot>]
Without 'select':
Processes "fx snapshot" output looking for problems specified in config
files. If no snapshot output is specified (no '--data') it runs a new
"fx snapshot" and uses its "inspect.json" file.
With 'select':
Generates selectors from the snapshot, filtered by select-string.
--config, --tag, --exclude-tag options are ignored.

   --config <config-file-or-dir>      Path to config file or dir
   --data <snapshot-or-dir>          Path to snapshot.zip or uncompressed dir
   --tag <tag>                        Adds an action tag to include
   --exclude-tag <tag>                Adds an action tag to exclude
   --select <string>                  Generates selectors filtered by <string>
   --test                             (deprecated) Run self-tests (only)

0 or more --config paths may be given. Path is relative to CWD, or absolute.
  If path is a directory, path/*.triage will be loaded.
  If 0 paths are given, config defaults to
  /src/diagnostics/config/triage/*.triage.

0 or more --tag values may be given. If tags are provided, only actions with
  matching tags will be included.

0 or more --exclude-tag values may be given. If exclude tags are provided,
  actions with matching tags will be excluded. This value is ignored if
  any --tag values are included.

If no --tag values or --exclude-tag values are included then all of the
  actions will be included.

0 or 1 --data paths may be given.
  Path must point to a snapshot.zip or a directory containing an unpacked snapshot.zip.
  For this path, 'fx triage' will analyze all supported filetypes.
  Currently, the only supported filetype is inspect.json.
  Future versions will add support for different files.
  If no --data is given,`ffx target snapshot` will be invoked and analyzed.

0 or more --select strings may be given. --select changes the
operation of the program: it generates all selectors for all
data in the snapshot and then filters them (via grep) through
all the --select strings.

triage source code