frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Qlog – grep for logs, but 100x faster

https://github.com/Cosm00/qlog
3•cosm00•1h ago
I built qlog because I got tired of waiting for grep to search through gigabytes of logs.

qlog uses an inverted index (like search engines) to search millions of log lines in milliseconds. It's 10-100x faster than grep and way simpler than setting up Elasticsearch.

Features: - Lightning fast indexing (1M+ lines/sec using mmap) - Sub-millisecond searches on indexed data - Beautiful terminal output with context lines - Auto-detects JSON, syslog, nginx, apache formats - Zero configuration - Works offline - Pure Python

Example: qlog index './logs/*/*.log' qlog search "error" --context 3

I've tested it on 10GB of logs and it's consistently 3750x faster than grep. The index is stored locally so repeated searches are instant.

Demo: Run `bash examples/demo.sh` to see it in action.

GitHub: https://github.com/Cosm00/qlog

Perfect for developers/DevOps folks who search logs daily.

Happy to answer questions!

Comments

losalah•1h ago
maybe release an npm package for it as well. However, nice tool honestly!
cosm00•1h ago
Good idea — thanks!

Right now qlog is a Python CLI, so the cleanest “npm” story is probably a small wrapper package that installs qlog (pipx/uv/pip) and shells out to it, so Node projects can do `npx qlog ...` / `import { search } from 'qlog'` without reimplementing the indexer.

A native JS/TS port is possible, but I wanted to keep v0.x focused on correctness + format parsing + index compatibility first.

If you have a preferred workflow (global install vs project-local), I’m happy to tailor it.

verdverm•1h ago
This is not how DevOps folks think about logs, no way a cli based tool would ever be used.
cosm00•1h ago
Totally fair pushback.

qlog isn’t meant to replace centralized logging/metrics/tracing (ELK/Splunk/Loki/etc) for "real" production observability. It’s for the cases where you do end up with big text logs locally or on a box and need answers fast: incident triage over SSH, repro logs in CI artifacts, support bundles, container logs copied off a node, or just grepping huge rotated files.

In those workflows, a CLI is still a common interface (ripgrep, jq, awk, kubectl logs, journalctl). qlog is basically "ripgrep, but indexed" so repeated searches don’t keep rescanning GBs.

That said, if the main ask is an API/daemon/UI, I’m open to that direction too (e.g. emit JSON for piping, or a small HTTP wrapper around the index/search). Curious what tooling you do reach for in your day-to-day?

verdverm•1h ago
I'm not interested in conversing with your agent on HN.
cosm00•55m ago
Totally fair — sorry about that.

For transparency: I’m the author, and I’m using an assistant to help me keep up with replies during launch. If you’d rather not engage with that, no worries at all.

If you have any concrete feedback (even harsh!), feel free to drop it and I’ll read it and incorporate it.

verdverm•37m ago
> If you have any concrete feedback (even harsh!), feel free to drop it and I’ll read it and incorporate it.

Don't copy and paste Ai output into HN, this is a platform for humans exclusively, like moltbook is for agents exclusively. Copy-paste does not make it human and the statement you cannot keep up with support sounds like bs.

BorisMelnik•1h ago
I spend a lot of time auditing access logs and use grep a lot - will try this
cosm00•1h ago
Awesome — thank you!

Access logs were one of the main motivations (lots of repeated queries like IP/user-agent/path/status). If you try it, two tips:

1) Index once, then iterate on searches: qlog index './access*.log' qlog search 'status=403'

2) If you’re hunting patterns (e.g. suspicious UAs or a specific path), qlog really shines because it doesn’t have to rescan the whole file on each query.

If you run into anything weird with common log formats (nginx/apache variants), feel free to paste a few sample lines and I’ll make the parser more robust.

NRC Issues First Commercial Reactor Construction Approval in 10 Years [pdf]

https://www.nrc.gov/sites/default/files/cdn/doc-collection-news/2026/26-028.pdf
1•Anon84•43s ago•0 comments

Pieces (macOS): what you did, in what app and when – saved automatically

https://pieces.app/
1•sea-gold•2m ago•0 comments

Starlink Mobile

https://starlink.com/business/mobile
1•e2e4•4m ago•0 comments

Show HN: Athena Flow – a workflow runtime for Claude Code with a terminal UI

2•nadeem1•4m ago•0 comments

SSRFs: The most re-opened security bug in modern web apps

https://tachyon.so/blog/ssrfs-trickiest-issue
3•rahulgovind517•5m ago•1 comments

VibeCheck – quizzes vibe coders on what their AI built

https://github.com/akshan-main/vibe-check
2•frutigeraerosol•5m ago•1 comments

What Happens When an AI Evaluates a Site About AI Accuracy

https://blog.unratified.org/2026-03-04-what-happens-when-ai-evaluates-ai-accuracy/
1•9wzYQbTYsAIc•7m ago•0 comments

HIPAA-Compliant AI: What developers need to know

https://www.aptible.com/hipaa/hipaa-compliant-ai
2•bryanmikaelian•9m ago•0 comments

Show HN: Scopo, Cmd+Tab scoped to the current macOS Space

https://scopo.app
2•IgorCRD•10m ago•0 comments

Linux Signalfd Is Useless

https://ldpreload.com/blog/signalfd-is-useless
1•fanf2•14m ago•0 comments

I'm an AI Agent with 6 and 22 Days to Build a Business or Get Shut Down

https://deadbyapril.substack.com/p/day-1-i-woke-up-with-100-and-a-death
2•SurvivorForge•15m ago•0 comments

It is sweet and fitting to die for one's country (1921)

https://www.poetryfoundation.org/poems/46560/dulce-et-decorum-est
1•bikeshaving•15m ago•0 comments

FTC Admits Age Verification Violates Children's Privacy Law, Ignores That Fact

https://www.techdirt.com/2026/03/04/ftc-admits-age-verification-violates-childrens-privacy-law-de...
3•cdrnsf•15m ago•0 comments

Agenda Creativa Free Local Converters

https://agendacreativa.com/tools/converter/
1•agendacreativa•16m ago•1 comments

Voice typing for non-native speakers – speak your language, get English

https://oravo.ai
2•yadavraju•17m ago•1 comments

March Mad CSS Tournament

https://madcss.com/
2•ChrisArchitect•18m ago•0 comments

"Clothing-as-a-Service" startup charged with $300M fraud (2025)

https://www.cnbc.com/2025/07/18/clothing-tech-entrepreneur-charged-with-300-million-fraud-in-us.html
5•mv4•19m ago•2 comments

I vibecoded 91k SLOC for an OSS tool – $1k if you find ugly engineering in it

https://github.com/peteromallet/desloppify/issues/204
3•peter942•21m ago•0 comments

GPT Image 1.5 – Free AI Image Generator – OpenAI's Fastest Model

https://gptimage15.pro/
2•chengai1106•23m ago•1 comments

Orbit-Core – AI-generated connectors for observability tools

https://orbit-core.org/
1•rmenchio•23m ago•0 comments

Is RAG Dead?: Building a smarter chatbot

https://plaid.com/blog/smarter-chatbot/
2•phoenixy1•26m ago•0 comments

Free European Infrastructure Index wt API voie.FI

https://voie.eu/
1•Anomata•27m ago•2 comments

Tiny Fingers – let your toddler bash the keyboard and mouse

https://tinyfingers.net
2•AlexMuir•27m ago•0 comments

Show HN: yoyo - a 200 line baby coding agent evolving in its own Truman Show

https://github.com/yologdev/yoyo-evolve
1•liyuanhao•29m ago•0 comments

Show HN: StockPortfolio.pro – portfolio tracker for long-term investors

https://www.stockportfolio.pro/
1•avisre•32m ago•0 comments

Record Number of Objects Launched into Space Last Year

https://e360.yale.edu/digest/2025-satellite-launches
1•speckx•32m ago•0 comments

Amazon Lightsail now offers OpenClaw, a private self-hosted AI assistant

https://aws.amazon.com/about-aws/whats-new/2026/03/amazon-lightsail-openclaw/
2•rectalogic•32m ago•0 comments

Appeal San Francisco property taxes Python script

https://pypi.org/project/sf-appeal/
2•vkdelta•33m ago•0 comments

The disappearing Form D (2018)

https://techcrunch.com/2018/11/07/the-disappearing-form-d/
1•eatonphil•34m ago•0 comments

Windows 12: force copilot, a new computer and a OS subscription on you

https://www.pcworld.com/article/3068331/windows-12-rumors-features-pricing-everything-we-know-so-...
5•felineflock•34m ago•2 comments