How to reset the error_log file?
Hello UNA Team,
My periodic/error_log file is getting huge in size (4.19 GB). Is there a proper way to reset or clear it?
Thanks
-
-
·
LeonidS
- ·
Hello @OneEagle !
If you have enough rights then you just may rename it to the error_log.old. Then if the error_log hasn't been created automatically yopu may do it manually (but set the same premissions under the same user as the previous one).
-
·
LeonidS
-
- · OneEagle
-
·
In reply to LeonidS
- ·
Hi @LeonidS
Thanks for your reply. After renaming it, can I delete that error_log.old file to free up disk space?
-
-
·
LeonidS
-
·
In reply to OneEagle
- ·
Sure, you can.
-
·
LeonidS
-
- · OneEagle
- ·
Feature Request: Please add an option/button in the studio dashboard to reset/clear the periodic/error_log file. Thanks @LeonidS @Alex T⚜️
-
-
·
LeonidS
-
·
In reply to OneEagle
- ·
It depends form the hosting work. Some companies palce the error_log in every folder of the script, some - only in the root folder and some - only in the etc or similar service folders outside of the script.
-
·
LeonidS
-
- · OneEagle
-
·
In reply to LeonidS
- ·
I've thought that the periodic/error_log file was generated by UNA not by Hosting server.
-
-
·
LeonidS
-
·
In reply to OneEagle
- ·
No, UNA writes the info about errors to own log folder only.
-
·
LeonidS
-
- · OneEagle
-
·
In reply to LeonidS
- ·
Hello @OneEagle !
If you have enough rights then you just may rename it to the error_log.old. Then if the error_log hasn't been created automatically yopu may do it manually (but set the same premissions under the same user as the previous one).
Hello @LeonidS
Does what you said here also apply to logs/bx_profiler.log?
Thanks
-
-
·
LeonidS
-
·
In reply to OneEagle
- ·
Yes, it will be created automatically.
-
·
LeonidS
-
- · OneEagle
-
·
In reply to LeonidS
- ·
Thanks, I have tried to delete periodic/error_log and logs/bx_profiler.log, then refresh my website page but why aren't they recreated automatically?
-
-
·
LeonidS
-
·
In reply to OneEagle
- ·
The files will be available with the initial case, including the error from the first instance and profiling information from the subsequent cases.
-
·
LeonidS
-
- · OneEagle
-
·
In reply to LeonidS
- ·
Alright, Thank you!