I am working on a few side-projects and i am not sure about how to manage logs.
For now i write all the logs to database.
Is there any solution that could be used to manage logs for later analysis.
I've always used Papertrail.
I use the ELK stack as well. Make sure you've got the ability to add space quickly as those logs sure grow quickly.
This is something my company often sets up for clients as well as for our own products such as https://kwiki.io - and we usually do it as @pulkownik said, using ELK stack, namely Kibana.
You are not limited by language or technology stack. Your process would be something like:
I recommend this way, you will appreciate it, especially later when your app/platform grows. Using elk and stuff like tagging requests using fingerprinting you can get very nice tracebacks as requests flow through your multi-layered microserviced system, easily detect issues, debug etc.
Finally, definitely don't keep them in a database, that's not what database is for ;)
Elastic stack (formerly known as ELK) is the standard for all logs- but of course you'd have to stand it up and mange it yourself but atleast its oss. There are many managed solutions in the space such as loggly, scalyr, etc.
I think for now elastic stack is the way to go but it would have been great if there is one stop solution with reports and analysis.
Thanks for replying.. :)
What do you mean by logs? Application logs? I have used ELK (Elasticsearch Logstah Kibana) stack and it works pretty well. You can customize it as you want.
Hey thanks for replying, by logs i mean application level logging.
Like log some data when some event occurs.
Or a process completes
Hi,
Yes so ELK stack works for me, however I am using java in backend. Not sure if it works with other languages you should check it.
This comment was deleted 8 years ago
Hi Christopher, this is quite a big stack for logging but would definitely check it.
Thanks for replying :)
This is not a big stack and it is quite simple to set up. Sentry is a god-given for picking up errors together with a stacktrace and it works almost out of the box! Check it out!
This comment was deleted 8 years ago