#Logging strategy for descentralized api instances

6 messages · Page 1 of 1 (latest)

lilac anvil
#

I'm starting to build a few small apis using nestjs. Winston will probably be used to ease log rules, log rotation etc. But I would like to centralize everything my instances log, So no matter if I have 3 instances of api A or 10 instances of api B running, everything regarding logs can be visualized in a central place.

I would like to use some solution easier to setup and deploy then elastic stack. I love elastic but I want to focus in other stuff atm, not able to deal with it in the next few months.
So what do you guys recommend me? 😄

steel wagon
#

If you want centralized logging, you're going to need to configure a log exporter and some log store. Elastic is one way, another one I can think about is OpenSearch, or some cloud provider like datadog or logrocket

lilac anvil
#

Thanks @steel wagon ! What log store do you think it's easier to run and maintain? I don't want much of the logs initially, like if they're not combined in a beaultiful DB like the one that powers elastic, it's fine. I just want to be able to grep/find things in a centralized place.

steel wagon
#

If you already use grafana, you can also look into Loki

lilac anvil
#

I'll compare the cloud providers then. Thank you again =]