Next.js Discord

Discord Forum

vercel log drains quick questions

Answered
Southeastern blueberry bee posted this in #help-forum
Open in Discord
Avatar
Southeastern blueberry beeOP
yoo quick question. does connecting axiom to vercel cost you money? vercel says it charges 10$ per 20gb processed, but i wanted to check with y'all.
Answered by B33fb0n3
yes and no.

Yes, because vercel itself logs stuff. For example which routes are visited. Axiom will copy (drain) these logs and you get charged for that.

No, because when you use it in your application for example like this:
log.info("Some logging stuff", {data: "with additional data"})
await log.flush();

Then it won't get logged to vercel, but directly to axiom. These won't cost anything.
View full answer

6 Replies

Avatar
yes and no.

Yes, because vercel itself logs stuff. For example which routes are visited. Axiom will copy (drain) these logs and you get charged for that.

No, because when you use it in your application for example like this:
log.info("Some logging stuff", {data: "with additional data"})
await log.flush();

Then it won't get logged to vercel, but directly to axiom. These won't cost anything.
Answer
Avatar
Southeastern blueberry beeOP
I want to forward the logs that vercel has like which routes were visited right now. Thank you for the answer!
Avatar
then, as said: it's paid
Avatar
Southeastern blueberry beeOP
🫡
tysm!
Avatar
happy to help