Page 1 of 1

How to delete CUPS server logs? [SOLVED]

Posted: Tue 16 Jan 2018, 23:53
by Sky Aisling
RE: Administration - CUPS 1.7.5 - Pale Moon

Hello,
Is there a way to delete the records in the CUPS 1.7.5 server access log, error log, page log?

Thank you in advance for your suggestions.

wrong puppy queue I think, please ask ahave an admin move it

Posted: Wed 17 Jan 2018, 02:46
by scsijon
Cups is basically a command line program set with a graphical frontend for common tasks.

Basically you will need to stop the cups server (you can only do this if you have root or full system access, chroot and the like don't often work).

If it's been setup for multiple users, it should then send messages out (which can't be stopped) to all users and the queue managers of that queue to warn them the queue is being stopped.

You then need to find the particular files (where ever they have been stored depends on the system, there is no 'standard spot').
BACKUP the three files somewhere else before you delete them!!!!
Delete the actual files
Restart cups or powerdown reboot your system
Check the cups server was restarted (it ocasionally fails if the file has dissapeared and you may have to reboot a second time or delete and recreate the queue in question)
Run a job and make sure the queue is working properly again (i've had it looking ok but not working).

It's not easy, and that is done on purpose.

further info can be found on the cups website, but make sure you are looking at the documentation for your particular cups version.

However if your problem is space, there is suppose to be a tool and setting to archive after a predetermined time or size. I haven't needed to use it so I can't help you with that

Posted: Wed 17 Jan 2018, 02:52
by 8Geee
I would snoop around /var in particular /var/logs and /var/cups


Regards
8Geee

How to delete CUPS server logs?

Posted: Wed 17 Jan 2018, 03:00
by Sky Aisling
Thank you, scsijon and 8Geee
I have an old HP printer that miss-fires a lot. The 'error' file is huge. I wanted to reduce extraneous data in my system. Also, for privacy sake, I wanted to make sure the data wasn't in a position to be hacked as I have personal records that I've printed showing in the logs.

EDIT: /var/cups/log gives me access to files via Geany. Thank you.
Yes, I'll backup the data.

Posted: Wed 17 Jan 2018, 03:05
by 8Geee
When you find that log, keep visible in Geany or leafpad, whatever. Then you can refer to it, and clean it. I do this in Slacko5.7/Geany. Works a treat.

Regards
8Geee