A custom script for a customer that wanted to have the system download the logs every 12 hours to a share so they could transfer the logs somewhere else.
Go to file
2021-09-29 02:39:48 +00:00
create-system-log-install.sh Add install file 2021-09-29 01:49:21 +00:00
create-system-log.service Add service file 2021-09-29 01:40:23 +00:00
create-system-log.sh Add log creation 2021-09-29 01:38:27 +00:00
create-system-log.timer Add timer file 2021-09-29 01:39:06 +00:00
README.md Update README.md 2021-09-29 02:39:48 +00:00

create-system-log

A custom script for a customer that wanted to have the system download the logs every 12 hours to a share so they could transfer the logs somewhere else.

Defaults

It will place the logs in a share called "mylogs" on volume "data" -- if it doesn't exist, it will create it automatically. It will pull the hostname and the unix timestamp. 15 minutes after the system boots and every 12 hours afterwards, the system will back up the logs and store them in the share.

To install the script

Copy and paste the below command into a ReadyNAS shell.

curl -s https://gitlab.codycook.us/readynas-scripts/create-system-log/-/raw/main/create-system-log-install.sh | bash

It will download the latest code and then immediately kick off a log bundle.

Once installed, it will inform you that the installation has concluded.