Hey IH!
What do you use for logs for your app?
I'm looking for a solution to start logging errors from my app. Ideally, it would be an API with one endpoint you send logs to and then can search through them in a dashboard or something.
I checked out Datadog and LogRocket. They seem a bit overkill for what I'm looking for. But I don't want to have to host and manage anything myself.
Thanks!
i use datadog and its great. i use sentry for exceptions. you can also just log to files on your server. datadog is hosted btw and quite cheap. it has many different services but logging is just one of them.
i would not recommend sentry for logging .
I use Sentry for exceptions and Papertrail for normal logs.
Sentry and Logflare might be worth checking out. I just set up Logflare for a Next.js app and would recommend.
Thanks! I checked out all of the recommendations in this thread and have decided to go with Logflare. It was the simplest to understand and get rolling with.
I wanted a simple API to send logs to and Logflare seems to fill that need.
No problem man, glad to hear you're up and running with it.
Have you tried SEntry?
Ive typically used the ELK stack (Elasticsearch, Logstash, Kibana) for collecting, storing, and searching logs. All of their components are opensource, so you can run them yourself, you can go with Elastic's cloud offering or even use the AWS hosted version.
Logstash is your collection interface and has a ton of plugins. If you're looking to send logs via an API, it can do that, but it can also collect from a specified logfile or even from syslog if you have that set up.
With Kibana you can then search your logs and even set up alerts when a query matches a given pattern (e.g. search for an error log pattern).
This is a pretty comprehensive how-to article I found that should give you a pretty good idea of how to set things up and how it works: https://logz.io/learn/complete-guide-elk-stack