-
I was previously using GoAccess with NGinx for our static site PLDB.com. Our site is now a dynamic site served by Express.js. I'd still want to use GoAccess. I'm Googling around now looking at various NPM logging packages, but think the easiest thing to do would just be to write a simple one or two liner that appends to disk and just match the NGinx format, and then I don't have to change anything at all with my Goaccess. Does anyone have this setup--Express.js + GoAccess? How do you do it? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Here is what I have so far. It's almost working, I just am messing up something with the formatting.
|
Beta Was this translation helpful? Give feedback.
-
Here is a log line:
And here is the GoAccess error:
|
Beta Was this translation helpful? Give feedback.
-
Still struggling, but here is my latest:
Produces:
Now my error messages are:
|
Beta Was this translation helpful? Give feedback.
-
Nevermind! I found the solution: use morgan: https://github.com/expressjs/morgan I deleted my custom function and replaced with:
morgan is perfect. The other logging middleware for node.js express were bloated. |
Beta Was this translation helpful? Give feedback.
Nevermind! I found the solution: use morgan: https://github.com/expressjs/morgan
I deleted my custom function and replaced with:
morgan is perfect. The other logging middleware for node.js express were bloated.