# Cordon – Reduce large log files to anomalous sections

Cordon uses transformer embeddings and density scoring to identify what's semantically unique in log files, filtering out repetitive noise. The core insight: a critical error repeated 1000x is "normal" (semantically dense). A strange one-off event is anomalous (semantically isolated). Outputs XML-t…

- **Page:** https://magpie.gallery/i/cordon-reduce-large-log-files-to-anomalous-section-yiay
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Tags:** logs, anomaly, embeddings, preprocessing, llm

## Source

Web · calebevans: Cordon – Reduce large log files to anomalous sections

- **Original:** https://news.ycombinator.com/item?id=46280239

> Cordon uses transformer embeddings and density scoring to identify what's semantically unique in log files, filtering out repetitive noise. The core insight: a critical error repeated 1000x is "normal" (semantically dense). A strange one-off event is anomalous (semantically isolated). Outputs XML-tagged blocks with anomaly scores. Designed to reduce large logs as a form of pre-processing for LLM analysis. Architecture: https://github.com/calebevans/cordon/blob/main/docs/architec... Benchmark: https://github.com/calebevans/cordon/blob/main/benchmark/res... Trade-offs: intentionally ignores repetitive patterns, uses percentile-based thresholds (relative, not absolute). https://github.com/calebevans/cordon

## GitHub projects

- https://github.com/calebevans/cordon

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
