SigSentrySigSentry

Command grammar

The full grammar for chat slash commands across Slack, Teams, Discord, and Google Chat

The /sigsentry analyze command (or @SigSentry analyze in Teams / Google Chat) accepts a description, a time expression, and optional flags. The grammar is the same across all four chat platforms, with small platform-specific differences noted below.

Basic shape

/sigsentry analyze <description> <time-expression> [flags]

The bot parses the command into three pieces:

PieceRequiredNotes
DescriptionYesWhat's wrong, free-form text
Time expressionYesWindow to query logs
FlagsOptional--project=<slug> for now; more in future

Description

Anything between analyze and the time expression is the description. Quoting is unnecessary — multi-word descriptions work as-is:

/sigsentry analyze checkout returning 500s after deploy last 30 minutes
              ──────────────────────────────────────────  ──────────────
                              description                  time expression

Time expressions

Several patterns are supported:

ExpressionWindow
last 30 minutes (or last 30 min, last 30m)30 minutes ending now
last 4 hours (or last 4h)4 hours ending now
last 1 day (or last 1d)24 hours ending now
since 9amFrom 9am today to now
since 14:30From 14:30 today to now (24-hour)
since yesterdayFrom midnight yesterday to now
between 9am and 11amA specific window today
between 2026-04-25 09:00 and 2026-04-25 11:00Explicit start/end

Time expressions are interpreted in the timezone of the user (detected from chat platform metadata where available, falling back to UTC).

Very wide time windows can produce a lot of logs. Narrow the window when possible to keep results focused.

Flags

FlagPurposeExample
--project=<slug>Run on a specific project (overrides the default)--project=billing
--helpShow inline help(no analysis runs)

Examples

/sigsentry analyze high error rate from checkout last 30 min
/sigsentry analyze db timeouts since 9am
/sigsentry analyze auth failures last 4 hours --project=api
/sigsentry analyze deploy regression between 2026-04-25 14:00 and 2026-04-25 15:00
/sigsentry help

Platform-specific notes

PlatformTriggerSpecial handling
Slack/sigsentry analyze ...Standard slash command
Teams@SigSentry analyze ...Bot mention; no slash command
Discord/sigsentry analyze (form fields)Structured UI rather than free-text — fill in the description, time, and project fields
Google Chat@SigSentry analyze ...Bot mention

Discord's slash command UI deserves special note: instead of typing the full command inline, Discord prompts you with structured fields for each parameter. The semantics are the same, just the input mode differs.

What the bot returns

For all platforms, after running the command:

  1. The bot acknowledges with "Analyzing logs from <window>..."
  2. The diagnosis posts within 30–60 seconds as a threaded reply
  3. Subsequent messages in the thread are treated as follow-up questions on that analysis

If the analysis fails (e.g. log source down, quota exceeded), the bot replies with the error reason in the thread.

Defaults

If you skip --project, the bot picks:

  1. The channel-level binding if one exists (set under Settings → Integrations → channel-bindings)
  2. Otherwise, your default project

If neither resolves, the bot asks you to specify --project=<slug>.