Show HN: Log collector that runs on a $4 VPS
118 points| Nevin1901 | 3 years ago |github.com | reply
ErLog is just a simple go web server which batch inserts json logs into an sqlite3 server. Through tuning sqlite3 and batching inserts, I find I can get around 8k log insertions/sec which is fast enough for small projects.
This is just an MVP, and I plan to add more features once I talk to users. If anyone has any problems with logging, feel free to leave a comment and I'd love to help you out.
[+] [-] Dachande663|3 years ago|reply
I settled on a happy/ok midpoint recently whereby I dump logs in a redis queue using filebeat as it’s very simple. Then have a really simple queue consumer that dumps the logs into clickhouse using a schema Uber detailed (split keys and values), so queries can be pretty quick even over arbitrary fields. 30,00 logs an hour and I can normally search for anything in under a second.
[+] [-] mr-karan|3 years ago|reply
Do you use any particular UI/Frontend tool for querying these logs?
[+] [-] metadat|3 years ago|reply
[+] [-] FrenchTouch42|3 years ago|reply
[+] [-] folmar|3 years ago|reply
[+] [-] remram|3 years ago|reply
[+] [-] djbusby|3 years ago|reply
[+] [-] unxdfa|3 years ago|reply
[+] [-] tiagod|3 years ago|reply
[+] [-] mekster|3 years ago|reply
Try tools like Metabase and see how it makes your log reading far better.
[+] [-] Thaxll|3 years ago|reply
https://www.elastic.co/guide/en/beats/filebeat/current/fileb...
[+] [-] mekster|3 years ago|reply
https://vector.dev/docs/reference/vrl/
[+] [-] rsdbdr203|3 years ago|reply
Free through '23 is my motto... Just a solo founder looking for feedback.
[+] [-] recck|3 years ago|reply
[+] [-] spsesk117|3 years ago|reply
I have been beta testing it for a while for small scale (~50 million non-nested json objects) log aggregation it's working beautifully for this case.
It's a no nonsense solution that is seemless to integrate and operate. On the ops side, it's painless to setup, maintain, and push logs to. On the user side, its extremely fast and straight forward. End users are not fumbling their way through a monster UI like Kibana, access to information they need is straight forward and uncluttered.
I can't speak to it's suitability in a 1TB logs/day situation, but for a small scale straight forward log agg. tool I can't recommend it enough.
[+] [-] binwiederhier|3 years ago|reply
[1] https://log-store.com/
[+] [-] remram|3 years ago|reply
It uses SQLite internally but can parse log files in many formats on the fly. C++, BSD license, discussed 1 month ago: https://news.ycombinator.com/item?id=34243520
[+] [-] keroro|3 years ago|reply
[+] [-] Hamuko|3 years ago|reply
[+] [-] sgt|3 years ago|reply
https://www.hetzner.com/cloud
More like $5 but still, 1 vCPU, 2GB RAM, 20GB NVMe storage. Closer to $4 USD if you let go of IPv4 in favor of IPv6 only.
Edit: Looks like that's also a shared vCPU.
[+] [-] teruakohatu|3 years ago|reply
[+] [-] withinboredom|3 years ago|reply
That should tremendously improve throughput, at the expense of some latency.
[+] [-] Nevin1901|3 years ago|reply
[+] [-] aninteger|3 years ago|reply
[+] [-] Nevin1901|3 years ago|reply
[+] [-] sgt|3 years ago|reply
[+] [-] andymac4182|3 years ago|reply
They have just added a new parser and query engine written in Rust to get the best performance out of your instance. https://news.ycombinator.com/item?id=34758674
[+] [-] peterpost2|3 years ago|reply
[+] [-] cnkk|3 years ago|reply
[+] [-] ilyt|3 years ago|reply
[+] [-] marcrosoft|3 years ago|reply
[+] [-] Weryj|3 years ago|reply
If you have an old computer at home, using a VPS as the gateway is always a good option.
Edit: you can then use the VPS as a exit node for internet.
[+] [-] harisamin|3 years ago|reply
https://github.com/hamin/jlq
[+] [-] Nevin1901|3 years ago|reply
How did you come up with the idea for jlq? It seems like it solved a pretty cool use case.
[+] [-] arjvik|3 years ago|reply
[+] [-] Groxx|3 years ago|reply
[+] [-] ilyt|3 years ago|reply
[+] [-] int0x2e|3 years ago|reply
[+] [-] maybesimpler|3 years ago|reply
[+] [-] vbezhenar|3 years ago|reply
[+] [-] addandsubtract|3 years ago|reply