Thread View: alt.privacy.anon-server
3 messages
3 total messages
Started by Red John
Thu, 25 Jan 2018 18:36
Mix error.log deletion
Author: Red John
Date: Thu, 25 Jan 2018 18:36
Date: Thu, 25 Jan 2018 18:36
11 lines
982 bytes
982 bytes
I currently have 45 errors in my mix error.log file and want to setup a cron job to delete this file every 48 hours. If I delete the file will mix recreate the file on its own when a new error is created. The current size of the file is 2647 bytes, so it's not taking up a lot of space. However, the file has data in it back to Oct. 2017 and I don't need to see this stale data on a daily basis. Is this the cron command to use? 0 0 0 1/2 * ? * rm -rf ~/Mix/error.log >/dev/null 2>&1
Re: Mix error.log deletion
Author: SEC3
Date: Thu, 25 Jan 2018 19:05
Date: Thu, 25 Jan 2018 19:05
33 lines
1831 bytes
1831 bytes
On 01/25/2018 01:36 PM, Red John wrote: > I currently have 45 errors in my mix error.log file and want to > setup a cron job to delete this file every 48 hours. As the mix user run crontab -e and add this line at the bottom of the file. Save changes. It will delete your log file every 2 days at 11pm: 0 23 */2 * * /bin/rm /home/mix/Mix/error.log &> /dev/null > If I delete > the file will mix recreate the file on its own when a new error is > created. Yes. Alternatively you can turn off Mixmaster logging altogether. In mix.cfg change this ERRLOG error.log to this ERRLOG /dev/null In the future you can turn logging back on at any time. Just edit mix.cfg again and reverse the changes. SEC3 Pinger Admin Contact information at <https://sec3.net>
Re: Mix error.log deletion
Author: Red John
Date: Thu, 25 Jan 2018 19:48
Date: Thu, 25 Jan 2018 19:48
47 lines
1832 bytes
1832 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 25 Jan 2018 14:05:08 -0500, you wrote: > > On 01/25/2018 01:36 PM, Red John wrote: > > I currently have 45 errors in my mix error.log file and want to > > setup a cron job to delete this file every 48 hours. > > As the mix user run crontab -e and add this line at the bottom of the > file. Save changes. It will delete your log file every 2 days at 11pm: > > 0 23 */2 * * /bin/rm /home/mix/Mix/error.log &> /dev/null > > > > If I delete > > the file will mix recreate the file on its own when a new error is > > created. > > Yes. > > > Alternatively you can turn off Mixmaster logging altogether. In mix.cfg > change this > > ERRLOG error.log > > to this > > ERRLOG /dev/null > > > In the future you can turn logging back on at any time. Just edit > mix.cfg again and reverse the changes. > > > SEC3 Pinger Admin > Contact information at <https://sec3.net> Thanks for sharing. -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAlpqLLEACgkQSrCPi4AVv5lRqACggBhYcgxxmLBb9gGN7pP7X2Qv g5IAn3vSsSc2vYllMLMm1CrOeUnbLdWr =CQeO -----END PGP SIGNATURE-----
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads