Cleaning up job logs?

linus12

Explorer
Joined
Oct 12, 2018
Messages
65
Installed TrueNAS Scale and have been validating some cron jobs
Lots of testing (lots of stupid syntax errors because I do this late at night!)
So is there a way to clean up the "failed jobs" (and corresponding log files) from the "jobs" menu?
I really hate seeing all those "Red X's" (Sure I know they were tests now, but in a couple of weeks I'll go crazy trying to figure out what 'failed'!)

Perhaps I missed something in the documentation or here on the forums? (It wouldn't be the first time!)
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
I believe that restarting the middleware will get rid of the failed jobs
 

linus12

Explorer
Joined
Oct 12, 2018
Messages
65
I believe that restarting the middleware will get rid of the failed jobs
Really? So restarting the TrueNAS Server will remove all the failed jobs?
That doesn't seem right. If the cron job (despite all the testing) were to fail and cause the TrueNAS server to reboot, one would lose all the evidence.
This seems like a hole to me....
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
From memory, thats the trick I used when my log was getting filled with garbage.
It just gets rid of the log display from the top right of the GUI. Not the actual logs
 
Top