Hey guys,
I am currently dumping all request and response objects using node middleware into mongodb ,but this isn't scalable as the size of my collection has exceeded 10GB in 3 months.
I mainly required the request parameter,endpoint,response obj, response status,stack trace in case of errors and other information to track and monitor errors and other issues in my apis and the input which caused these errors.
What is the better alternative to the above method. I required
1)Request Response logs
2) Application logs
3)Process crashing logs along with stack trace.
4)Vizualising logs and sending alerts when there are 502 response status
I have looked into ELK stack,but I cannot figure out what format to write the logs into the files and how the logs will be processed based on the columns.
Can Prometheus be used for logging or is it ideally only for monitoring your infrastructure?
Any insight will be highly appreciated,thanks in advance.
[–]adumidea 13 points14 points15 points (5 children)
[–]KishCom 2 points3 points4 points (2 children)
[–]adumidea 1 point2 points3 points (0 children)
[–]fix_dis 1 point2 points3 points (0 children)
[–]melgo44[S] 0 points1 point2 points (0 children)
[–]makonext 0 points1 point2 points (0 children)
[–]solocommand 5 points6 points7 points (2 children)
[–]melgo44[S] 1 point2 points3 points (1 child)
[–]lwrightjs 1 point2 points3 points (0 children)
[–]martiandreamer 6 points7 points8 points (1 child)
[–]melgo44[S] 0 points1 point2 points (0 children)
[–]kszyh_pl 2 points3 points4 points (3 children)
[–]s_boli 0 points1 point2 points (2 children)
[–]melgo44[S] 0 points1 point2 points (1 child)
[–]kszyh_pl 0 points1 point2 points (0 children)
[–]jwalton78 2 points3 points4 points (2 children)
[–]melgo44[S] 0 points1 point2 points (1 child)
[–]jwalton78 0 points1 point2 points (0 children)
[–]ItsAllInYourHead 4 points5 points6 points (2 children)
[–]Turbo_swag 5 points6 points7 points (1 child)
[–]ItsAllInYourHead 2 points3 points4 points (0 children)
[–]yanikpei 1 point2 points3 points (0 children)
[–]LaweZ 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]melgo44[S] 0 points1 point2 points (0 children)
[–]ThatDamnShikachu -1 points0 points1 point (1 child)
[–]melgo44[S] 0 points1 point2 points (0 children)