7951 questions

9404 answers


12979 members

0 votes
99 views 1 comments

Is it possible (standard function or by a script) to download daily the logread file ?

1 Answer

0 votes


Logread is saved in the database file in the router. Would you like to just copy it to a text file or you also want to download it to your PC through SSH?

You can use command logread > /logreadfile.txt , this will copy whole log into a readable file and then you can export it out of the router the way you like, any SCP file transfer capable app like WinSCP or just using SSH and command scp username@remote:/file/to/send /where/to/put

I believe if you're going to do it daily you will need to clear out the log you're copying. To do that just restart log service with /etc/init.d/log restart but keep in mind that you need to do this command at the start of the day, so when you copy the log to a file it won't be empty.


Ok, I will try to automatize your explanation.

Yes want to download it in order to analyze possible problems on several days.