# Angle-grinder - 실시간 로그 뷰어

> Clean Markdown view of GeekNews topic #4694. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=4694](https://news.hada.io/topic?id=4694)
- GeekNews Markdown: [https://news.hada.io/topic/4694.md](https://news.hada.io/topic/4694.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2021-07-26T10:15:01+09:00
- Updated: 2021-07-26T10:15:01+09:00
- Original source: [github.com](https://github.com/rcoh/angle-grinder)
- Points: 14
- Comments: 1

## Topic Body

- 로그를 실시간으로 파싱, 집계, 합계, 평균, 최대/최소, 정렬 가능한 뷰어

ㅤ→ graphite/kibana/honeycomb/splunk 등이 없을 때 간단하게 정교한 분석 수행 가능

- 초당 1M(간단한 경우 5M)단위의 로그 처리 가능

- 실시간으로 업데이트 되는 UI 구현 가능

- Rust 오픈소스. 리눅스/맥 바이너리 제공(다른 OS 컴파일 가능)

예)

- agrind '* | json | count by log_level'

ㅤ→ JSON으로 로그레벨 단위로 로그 카운트 집계

- '* | json | where status_code >= 400'

- '* | json | where user_id_a == user_id_b'

- '* | json | where url != "/hostname"'

- '* | json | count, p50(response_ms), p90(response_ms), count by status_code >= 400, url'

## Comments



### Comment 5930

- Author: xguru
- Created: 2021-07-26T10:15:09+09:00
- Points: 2

The Logfile Navigator https://news.hada.io/topic?id=4606

페이지 하단에도 있듯이 기존 lnav와 비교가 되는데,

- Angle-grinder는 쏟아지는 로그에서 실시간으로 데이터를 취합해서 뭔가 처리해서 보고 싶을 때 사용

- lnav 는 sqlite 를 통해서 이미 출력된 로그에서 SQL등을 통해서 쿼리 할때 사용
