FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
416 views 1 comments
by anonymous
Hello,

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

1 Answer

0 votes
by anonymous

Hi,

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.

EB.

by anonymous
Ok, I will try to automatize your explanation.

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