Ask HN: How do you manage logs for your backend services?
21–30 of 142 posts
Re: Ask HN: How do you manage logs for your backend services?
#22Re: Ask HN: How do you manage logs for your backend services?
#23Tweak your system so you can selectively turn on log collection, and collect useful metrics 24/7. Logs almost never matter until you're diagnosing an active problem, anyway, and then only a few logs will be necessary. Differentiating the type and quality of particular log messages is also very useful.
Re: Ask HN: How do you manage logs for your backend services?
#24I don't have a lot of experience with it yet, but Loki looks promising for small projects. You'd still use it as a centralized logging server, but it's not as resource-expensive as something like self-hosting ELK. I've only been using it for my homelab, and haven't even moved everything to it yet - but I like it so far. I already use Grafana+influxdb for metrics so having logs in the same interface is nice. https://g…
I've been benching it in production. On a 1core 2gb vps it can do around 1200 logs/sec. Compared to ELK, we're saving several hundred $ per month.
You can do 1200 logs/sec with a container limited to 1 core and 256mb of memory running elasticsearch.
Re: Ask HN: How do you manage logs for your backend services?
#25Re: Ask HN: How do you manage logs for your backend services?
#26- Exist a tool that allow to navigate structured logs easily, without bring a heavy machinery like ELF stack? and work in terminal?
- That also filter only ERRORS and few lines above/below?
Re: Ask HN: How do you manage logs for your backend services?
#27What's the volume of logs?
What's the expected usage? (debugging? audit?)
Are you using text, or structured logs? (or can you switch to structured easily?)
How far back do you want to keep the logs? How far back do you want to query them easily?
Are you in an environment with an existing simple solution? (GCP, AWS)
Re: Ask HN: How do you manage logs for your backend services?
#28Re: Ask HN: How do you manage logs for your backend services?
#29for the endpoint itself, consider switching to syslog so you get a bunch of stuff for free (auto-rotations, docker logging, ...) and more easy to change decisions later (pipe to splunk/elk/...). it's thought out and pretty easy!
Re: Ask HN: How do you manage logs for your backend services?
#30I don't have a lot of experience with it yet, but Loki looks promising for small projects. You'd still use it as a centralized logging server, but it's not as resource-expensive as something like self-hosting ELK. I've only been using it for my homelab, and haven't even moved everything to it yet - but I like it so far. I already use Grafana+influxdb for metrics so having logs in the same interface is nice. https://g…