---
name: server-log-anomaly-detection-and-triage
description: "Scans designated server log directories for error spikes, repeating stack traces, and system faults, then drafts a triage report of impacted services and remediation steps. Use when investigating runtime anomalies or recent incident traces."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Slack."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/server-log-anomaly-detection-and-triage/"
  kind: workflow
  hermes:
    tags: ["logs", "monitoring", "troubleshooting", "infrastructure"]
    category: ops
    requires_toolsets: ["terminal"]
---
# Server log anomaly detection and triage

Scan runtime logs for error spikes and isolate root causes in sandboxed environments

## When to use

Inspect server logs across specified workspaces to detect irregular patterns, error clusters, and system faults. The agent inspects recent incident traces, extracts repeating stack traces, and drafts a triage report summarizing impacted services and remediation steps.

## Inputs

- `log_directory`: Path to the designated log directory to inspect using read-only terminal commands.
- `workspace_scope`: Specified workspace or service scope whose logs should be inspected.
- `incident_traces` (optional): Recent incident traces or time window to correlate error timestamps against.

## Steps

1. On a schedule: Hourly log inspection (Runs hourly on a schedule to inspect recent server logs.). Schedule: `0 * * * *`
2. Analyze error patterns
3. Anomaly incident summary

## Instructions

Read application logs inside the designated log directory using terminal commands. Identify anomalous error spikes and correlate timestamps. Restrict all inspections to read-only commands within the designated folder. Prepare a diagnostic summary outlining root causes. If creating alert issues or notifying engineers via Slack, request approval before sending.

## Approvals

- Creating alert issues requires approval before creation.
- Notifying engineers via Slack requires approval before sending.

## Output

Diagnostic triage report summarizing error clusters, impacted services, root causes, and remediation steps. (format: markdown)

## Source

Summarized in our own words from [Upsonic: Reliable agent framework that supports MCP. ![GitHub Repo stars](https://img.shields.io/github/stars/upsonic/upsonic?style=social)](https://github.com/upsonic/upsonic) (GitHub, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/server-log-anomaly-detection-and-triage/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
