LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-16-2015, 06:47 PM   #1
Josh Scott
LQ Newbie
 
Registered: Apr 2015
Location: Boise, ID
Distribution: Debian, Linux Mint, FreeBSD
Posts: 14

Rep: Reputation: Disabled
Large System Logs Woes


Greetings all,

I run Debian Jessie with Gnome 3.14. My /var/logs/messages file is enormous and full of this:

Code:
Oct 16 17:41:13 simplyred gnome-session[1003]: Gjs-Message: JS LOG: error reading: /sys/devices/virtual/thermal/thermal_zone0/temp
I assume it's trying to read data about my cpu temp and can't. How do I stop this?

My /var/log/user.log is huge too with the exact same error msg.

Along with this, what's the best way to keep logs purged and trimmed down to size? I noticed Debian is archiving some but I'm surprised how large it is allowing the logfiles to get. Is there a conf file somewhere to set the maximum size or something?

Thanks
Josh
 
Old 10-16-2015, 07:41 PM   #2
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 390

Rep: Reputation: Disabled
Syslogd is what writes log files... Change your log settings in /etc/syslog.conf
 
Old 10-17-2015, 04:22 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Josh Scott View Post
Along with this, what's the best way to keep logs purged and trimmed down to size? I noticed Debian is archiving some but I'm surprised how large it is allowing the logfiles to get. Is there a conf file somewhere to set the maximum size or something?
The answer to this question is logrotate with its configuration file /etc/logrotate.conf. You can configure it to rotate log files based on their size; the logrotate man page contains an example for this.
 
Old 10-17-2015, 11:56 AM   #4
Josh Scott
LQ Newbie
 
Registered: Apr 2015
Location: Boise, ID
Distribution: Debian, Linux Mint, FreeBSD
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thank you

Thank you so much arfon and berndbausch. I'll look at both.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Prevent my logs from growing so large MBA Whore Linux - Newbie 11 03-18-2015 05:49 PM
Back up logs file and create a script showing the backed up logs and the running logs Billy_6052 Programming 5 12-13-2014 02:32 AM
[SOLVED] Shell Script or Command to Remove PDF file from large logs Doknik Linux - Newbie 2 07-14-2011 08:39 AM
[SOLVED] Exim logs spammed with large headers wulu Linux - Security 4 02-12-2011 06:08 AM
LXer: This week at LWN: Large pages, large blocks, and large problems LXer Syndicated Linux News 0 09-27-2007 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration