# Triage

> [!NOTE]
> **Note:** Before attempting to use Triage, see go/fuchsia-subsystem-health.

Triage is a system for analyzing Fuchsia snapshots to detect predefined error
conditions and other states of interest. It uses configurable rules to scan
diagnostic data, such as Inspect data and logs, and to condense a large amount
of information into actionable warnings and reports.

Triage can be used with `ffx triage` and `fx triage` and is also used by
[Detect](https://fuchsia.dev/docs/development/diagnostics/analytics/detect) to monitor devices in the field.

## Getting started

- [Codelab: Using Triage](https://fuchsia.dev/fuchsia-src/development/diagnostics/triage/codelab): A step-by-step tutorial on how to use `fx triage`, add new rules, and test them.

## Key concepts

- [Configuring Triage](https://fuchsia.dev/fuchsia-src/development/diagnostics/triage/config): A detailed reference for the `.triage` file format, including selectors, expressions, actions, and tests.
- [`fx triage` Command Reference](https://fuchsia.dev/fuchsia-src/development/diagnostics/triage/fx_triage): A reference for the `fx triage` command and its options.

[](https://issues.fuchsia.dev/issues/new?component=1439230&template=1881640&description=Issue+on:+https://fuchsia.dev/docs/development/diagnostics/triage/README.md "Report a bug or suggest improvements on this page") [](https://cs.opensource.google/fuchsia/fuchsia/+/main:docs/development/diagnostics/triage/README.md "View the source code of this page") [](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=docs/development/diagnostics/triage/README.md&cloneRepo=fuchsia/fuchsia:refs/heads/main&fullPath=fuchsia/docs/development/diagnostics/triage/README.md "Edit the source code of this page")