How to delete CUPS server logs? [SOLVED]

Problems and successes with specific brands/models of printers
Post Reply
Message
Author
User avatar
Sky Aisling
Posts: 1368
Joined: Sat 27 Jun 2009, 23:02
Location: Port Townsend, WA. USA

How to delete CUPS server logs? [SOLVED]

#1 Post 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.
Attachments
CUPS1.png
(9.74 KiB) Downloaded 114 times
Last edited by Sky Aisling on Wed 17 Jan 2018, 03:23, edited 1 time in total.

scsijon
Posts: 1596
Joined: Thu 24 May 2007, 03:59
Location: the australian mallee
Contact:

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

#2 Post 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

User avatar
8Geee
Posts: 2181
Joined: Mon 12 May 2008, 11:29
Location: N.E. USA

#3 Post by 8Geee »

I would snoop around /var in particular /var/logs and /var/cups


Regards
8Geee
Linux user #498913 "Some people need to reimagine their thinking."
"Zuckerberg: a large city inhabited by mentally challenged people."

User avatar
Sky Aisling
Posts: 1368
Joined: Sat 27 Jun 2009, 23:02
Location: Port Townsend, WA. USA

How to delete CUPS server logs?

#4 Post 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.
Last edited by Sky Aisling on Wed 17 Jan 2018, 03:21, edited 1 time in total.

User avatar
8Geee
Posts: 2181
Joined: Mon 12 May 2008, 11:29
Location: N.E. USA

#5 Post 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
Linux user #498913 "Some people need to reimagine their thinking."
"Zuckerberg: a large city inhabited by mentally challenged people."

Post Reply