how do i see my local files ?
so in my project some logs are saved on a csv file in my local directory , how can i open the csv file that has the logs saved ?
35 Replies
Project ID:
N/A
N/A
Solution
Not possible.
Use a logging service like axiom https://axiom.co
Axiom
All your data, all the time - Axiom
All your data, all the time - meet Axiom's serverless log management solution
You can also create an http endpoint in your app that allows you to access files on the disk, but that becomes risky if it is a public app
yeah that i thought of but it can be quite dangerous , the url that railway provides is there a way so that i can set that only my ip address can access it ?
that's all application design
you'd have to do that yourself
ohk
tbh i think the easiest way is to use a logging service
or you can have it POST request to another service you own (but that defeats the point of using railway lol)
you can use a password or something to protect your app but once again probably best to use axiom or another logging service
you can use access tokens and limit that endpoint to only certain allowed ip addresses
access tokens and passwords are hard
doing it to a specific IP address maybe, but thats still not exactly "secure"
ip address spoofing is super easy
that's why you use both
true
lool this is pretty interesting because its a problem im facing too
I might do rsa signing challenges for one of my projects
1. request a challenge
2. sign challenge
3. use signed challenge as a Bearer auth token or something lol
whats your techstack if you dont mind me asking
What I use the most or
i mean what I use the most is Nextjs, mongodb, express and node
what I prefer to use is nextjs, postgres, express/other and bun.sh
And tokens aren't super hard if they aren't multi user. You can add fake delay to prevent timing attack and use the simplest TOTP implementation to never pass the actual secret over a network
Yeah but compare that work to slapping an axiom logging export onto the app
and then it becomes a different story
depends on what's more preferable to you
for me having to use an additional service isn't really interesting
true
easy solution use s3 with a password
in fact my logs work like that
i was thinking a webhook that can give me the csv file every 24 hrs or so
catch-all data dums to be exact
I also have a supabase instance to dump some other error logs there
and a DigitalOcean function that checks new logs every 6 hours and sends a telegram notification
guys make everything so difficult
do it the simple way
8 years of writing in C
doesn't go away without leaving a mark
i never learned C
I'm so new generation that I don't know the father of all programming languages lol
I know rust though
us
Im learning rust rn
btw why is rust getting so popular?
i m newbie so
maybe let's move to chitchat for this?
yep
Brody gonna be disappointed in me and Alex
lol
i didnt realise we were in help lol