FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

13308 questions

15799 answers

25518 comments

50172 members

0 votes
29 views 3 comments
by
Hi, what logging tools are available for RUT956? I can't find logrotate, rsyslog or syslog-ng. I need to rotate and send custom log files like nginx access and error logs.

1 Answer

0 votes
by

Hello,

   

The default logging command for RutOS is logread. To monitor the logs live, the command logread -f can be used.

However, in your case, it seems like our log-sending utility would work the best. It can be found by navigating to System → Administration → Troubleshoot. In the Logging Settings, the server, port, protocol, and log buffer can be set. These logs will be sent to the remote server as soon as they are generated.

logread -r <server> <port> can also be used to set up the log sending to the server.

  

Let me know if any more information is needed!

Best regards,
DaumantasG

by
I can't see how this helps with custom log files. I'm not interested in system log.
by

Hello,

  

Sorry, misunderstood the question.

The utilities you're looking for are available to download using the opkg package manager.

Simply run the command opkg update and opkg install rsyslog.

  

Best regards,
DaumantasG

by
Oh I'm sorry, I didn't realize that opkg package information is not cached between reboots, or maybe I did something else wrong. Now I can install those tools after running opkg update again.