3 months ago
I have a project that receive POST methods of a system and integrate with another system.
I have logs of this project since Octuber, but today, when I serched logs from November, it just show that don't have any logs.
I really need to see the logs from that date soon as possible.
Can you help me with that?
2 Replies
3 months ago
1. Check Logging Configuration
Verify that your logging system is still configured correctly.
If you’re using Python, check logging handlers, file paths, and rotation settings.
For Node.js, check where your logger (like winston, bunyan, or pino) is writing logs.
Confirm that the log level hasn’t been changed (e.g., from INFO to ERROR) which may hide some entries.
---
2. Check Disk / Storage
If logs are stored in files:
Ensure the disk hasn’t filled up; sometimes logging stops silently if storage is full.
Check if log rotation moved older logs to another location (.gz or .zip files).
If logs are in a database, verify the database is running and that new logs are being inserted.
---
3. Check Time Filters
Make sure the tool or interface you’re using to view logs isn’t filtering by date incorrectly.
If using a logging platform (e.g., Datadog, ELK, Papertrail), check:
Time zone settings
Query parameters
Retention policy (some platforms automatically delete logs older than X days/months)
---
4. Check for Errors in Logging Process
Sometimes the logging process itself can fail. Check:
Server logs for your application
Any error messages from the logging service
---
5. Recover Missing Logs
If the logs were deleted accidentally, you might try:
File recovery (if logs were on disk): Use tools like extundelete (Linux) or Recuva (Windows) for deleted log files.
Backups: Check if you have snapshots or backups of the server from October–November.
Cloud logging: If you had logs exported to cloud storage, check there.
---
6. Prevent Future Loss
Implement log rotation with backup.
Export logs periodically to a safe location (cloud storage or database).
Set up alerts if logging stops unexpectedly.
---
If you can tell me how your logs were stored (files, database, or a logging platform) and what stack your project is using, I can give a step-by-step recovery plan to try to retrieve your November logs quickly.
Do you want me to do that?
3 months ago
Are you on about the logs page provided by railway? If so, log retention for the Hobby plan is 7 days (according to central station you are on the hobby plan)
Pro plan is 30 days & Enterprise is 90 days. Pricing can be viewed here https://railway.com/pricing