We

We built a ClickHouse-based logging service

Hacker News

We built a ClickHouse-based logging service

Hey hn! I'm one of the co-founders of highlight.io, an open source monitoring tool. Today we're sharing a ClickHouse-based logging solution we've been working on. We wanted to showcase how we built it and share how you could try it out to give feedback. Since we started working on highlight.io, we've been hyper-focused on "cohesion", or ensuring that when you install your monitoring stack, all of the resources in that stack (user interactions, requests, traces, logs, etc.) are connected in a consumable way. We've written up more about our philosophy on this here [1]. We started building towards this by connecting your client-side app and your server-side exceptions with session replay and exception monitoring; i.e. if an error happened in a server-side app, we would make it easy (with session replay) to trace all the steps that a user took leading up to it. Especially for larger companies using highlight.io, the request to tie in logs came up repeatedly, and we wanted to build this with the same philosophy in mind. Now, you'll see client-side and server-side logs all in one place, brought together in the context of a user session, as well as logs in the context of an error. Like the rest of our stack, this project is written in Go and Typescript, and for log ingestion/querying, we're using ClickHouse [2]. Before deciding on ClickHouse, we were planning to use OpenSearch (an aws fork of elasticsearch [3]) for this part of our product, but as our traffic has increased, we encountered quite a few pains with write throughput for OpenSearch. After evaluating a few options, we eventually landed with ClickHouse (their cloud offering was icing on the cake), which has also proven to be much more cost-effective so far. Building with ClickHouse from scratch has been an exciting journey. Eric (the mastermind behind this project) wrote a blog post [4] on a handful of ClickHouse learnings we've gathered since starting the project. For those wanting to try out the product locally, you can run the following commands [5]: git clone --recurse-submodules https://github.com/highlight/highlight cd highlight/docker; ./run-hobby.sh; To send logs to highlight, you can use your own OpenTelemetry implementation [6] or use our SDKs [7] which provide lightweight wrappers over OTEL. Like the rest of highlight.io, we plan to make money from this with our hosted cloud offering. For those interested in trying out the cloud-hosted version, you can get setup at app.highlight.io. To open the floor for feedback, we would love to get some thoughts on what we've built so far. Beyond that, what are parts of a logging product you wish you had with your current setup? And are there any notable pain-points of using a hosted monitoring product? (We're toying with the idea of an enterprise deployment). Excited to hear from everyone. [1]: https://highlight.io/docs/general/company/product-philosphy [2]: https://clickhouse.com [3]: https://news.ycombinator.com/item?id=26780848 [4]: https://www.highlight.io/blog/how-we-built-logging-with-clic... [5]: https://www.highlight.io/docs/getting-started/self-host/self... [6]: https://www.highlight.io/docs/getting-started/backend-loggin... [7]: https://www.highlight.io/docs/getting-started/overview#for-y...

Share card

Actual performance

192points
110comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: user, dock, new · Missing: mac, agents, macos
89%89% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: excited, lua, open source · Missing: https docs, just released, exist
88%88% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersFits the IH revenue-focused audience · Strong signals: started · Missing: supports, reddit linkedin, podcasting
85%85% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
39%39% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: host · Missing: plus, platform, intuitive
36%36% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: make money · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Ng
Nginx logging to ZeroMQ74%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Nginx logging to ZeroMQ

Hacker News6
St
StandupMail – Email-based productivity logging57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

StandupMail – Email-based productivity logging

Hacker News5
I
I Built UUIDs-as-a-Service59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I Built UUIDs-as-a-Service

Hacker News3
I
I built a tamper-evident audit logging service to prevent DB rewrites48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I built a tamper-evident audit logging service to prevent DB rewrites

Hacker News2
Ce
Centralized Logging Tool52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Centralized Logging Tool

Hacker News2
Bl
Blindsight, a Scala Logging API58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Blindsight, a Scala Logging API

Hacker News4
Dj
Django Easy Logging48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Django Easy Logging

Hacker News5
dl
dlog – A delegating logging library for Golang44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

dlog – A delegating logging library for Golang

Hacker News1
wi
willie-lumberjack, A logging module for Willie IRC bot.56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

willie-lumberjack, A logging module for Willie IRC bot.

Hacker News1
Cr
Crontab monitoring and logging42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Crontab monitoring and logging

Hacker News3