What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

System Log - Deleted

Nubble

Occasional Visitor
I must have inadvertently clicked "Clear" on the system log GUI page at some earlier point as when I went to view it much of it had disappeared. I lost valuable troubleshooting information as a result of that mistake. (I honestly don't recall doing this.) I was able to recover the syslog.log-1 portion from the /jffs partition as I run a cron script which saves newly created syslog.log-1 files to a USB stick but that obviously was of no help with the current syslog.log file itself. Is there any way to disable the Clear function (or at least get a warning prompt) possibly through a script or system setting? I'm assuming this a long shot but thought I would ask.
 
The Clear button only clears the UI display and does not delete entries in the logfile.
Your logfile was deleted/recreated for another reason.
 
The Clear button only clears the UI display and does not delete entries in the logfile.
Your logfile was deleted/recreated for another reason.
This is certainly possible however as a test, I clicked "Clear" in the UI and indeed syslog.log (and apparently syslog.log-1) was deleted from the /tmp directory. If I issue a process (PS) command for syslogd I don't see anything that implies a reset, but output from this command is limited. Any other thoughts appreciated.
 
This is certainly possible however as a test, I clicked "Clear" in the UI and indeed syslog.log (and apparently syslog.log-1) was deleted from the /tmp directory. If I issue a process (PS) command for syslogd I don't see anything that implies a reset, but output from this command is limited. Any other thoughts appreciated.
If I inspect the html code, I see no such delete function.
 
The HTML cannot do anything since it's client-side, not server side. Clicking on "Clear" sets action_mode to " Clear ", and sends it back to the router in a POST, which instructs httpd to the logs:

https://github.com/RMerl/asuswrt-merlin/blob/master/release/src/router/httpd/web.c#L7400
As always, you are correct.
There is a copy of the syslog with delayed writing in jffs I was looking at when clearing the log in the WebUI.
The jffs syslog may retain the info OP is looking after.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Back
Top