Hello,
If you want to save logs to a USB flash drive, there a couple of things you can do.
You can use the following command:
- logread -f >> /mnt/sda1/logfile.txt &
This command will log continuously into the logfile.txt file on the flash drive. You can add this command to System -> Custom Scripts above 'exit 0' to start automatically on device reboot.
Alternatively, you can create a simple script to copy the logs.db to a a flash drive and schedule it to run periodically using crontabs. This logs database does not include all the information though, so the fist method is probably better for your purposes. Anyways, the logs database is located in the /log/log.db file, and you can copy it to the flash drive by executing the command: "cp /log/log.db /mnt/sda1/logs.db".
Regarding the application on your end devices, there are various third-party options available for receiving logs. So I would suggest exploring those. You can even use Hercules on your PC to receive, view and store logs in a file. To do this, run the Hercules server on your chosen port and enable the option to save logs into a file. You can accomplish this by right-clicking on the received data window and selecting "log to file." Configure System -> Administration -> Troubleshoot to send logs to your Hercules server.
Kind Regards,
Andzej