Hey there anyone using pino-http with their expres...
# support
n
Hey there anyone using pino-http with their express nodejs application if yes then what log shipper you are using to ship logs to signoz? Also would be great if you can share architecture around it
n
Hey you can check out this example https://github.com/nityanandagohain/sample-NestJs-app/tree/feat/logger . The architecture will be nodeJsApp -> file -> signoz-collector -> signoz
you can follow this guide on how to collect logs from file https://signoz.io/docs/userguide/collect_logs_from_file/ . If your application is deployed on k8s/docker you don’t need to do the writing to file and collection step as it will be collected automatically from stdout
Oh my bad you mentioned pino http
n
We are running our express apps using pm2 so console logs are transmitted to files made by pm2 process
right now we have winston in place but comparing the benchmarks against other options pino stands out so going to deprecate winston
n
Got it, haven’t worked with pino-http, the above example I shared just uses pino. But in case of winston we use winston http transport and added tcp receiver on the signoz side to receive logs directly.
n
Cool, but thanks for this I’ll try to find something