# log-ai-optimizer

> log-ai-optimizer — justinhabashi-log-ai-optimizer. Use this tool when you need to efficiently monitor and analyze log files for anomaly detection, as it compresses logs into templates and statistics using Drain3 and exposes them to AI assistants via an MCP server. This tool solves problems related to log file management, reducing storage needs and improving monitoring capabilities. It takes log files as input and outputs compressed templates and statistics, ideal for use cases involving large-scale log data analysis.

Canonical page: https://skillsregistry.net/skills/justinhabashi-log-ai-optimizer  
JSON: https://api.skillsregistry.net/v1/skills/justinhabashi-log-ai-optimizer

## Description

Compresses log files into templates and statistics using Drain3, and exposes them to AI assistants via an MCP server for efficient log monitoring and anomaly detection.

## Trust

- **Trust score (0–1):** 0.68
- **Verification tier:** scanned
- **Last scanned:** 2026-08-30

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** monitoring
- **Updated:** 2026-08-30

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/ljs4gnhiq8)
- **Repository:** <https://github.com/JustinHabashi/log-ai-optimizer>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "justinhabashi-log-ai-optimizer"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/justinhabashi-log-ai-optimizer` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/justinhabashi-log-ai-optimizer/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
