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
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
Nishant singh
03/17/2023, 10:53 AM
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
nitya-signoz
03/17/2023, 10:56 AM
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
Nishant singh
03/17/2023, 10:59 AM
Cool, but thanks for this I’ll try to find something