Author Topic: Problem with syslog  (Read 2005 times)

kira.mizuky

  • Guest
on: September 22, 2012, 06:30:43 AM
hi BB user n admin
1. why i can't find the syslog.conf on my BB system...
2. i've got some problem with 2 files on /var/log, they'r syslog.1 n kern.log...their size r 18.5Gb so tottal size for them(syslog.1 n kern.log) r 39Gb...how to fix it?

sorry if my english so bad



ostendali

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 580
    • View Profile
Reply #1 on: September 22, 2012, 12:02:59 PM
1) backbox uses rsyslog as logging system (/etc/rsyslog.d/50-default.conf), if you'd like to use syslog you have to install it (syslog-ng), and see syslog.conf....
2) check/post what those logs contains, you might have something wrong over the system. I don't think this anything to do with syslog as it does only its duty, logging whatever comes across the system at OS and kernel level.
3) you can get rid those files once you know what they contains
  - tailf -f /var/log/syslog  (and see if there are lots of logs scrolling)
  - tail -200 /var/log/syslog (and past somewhere, link here to see)
  - dmesg of your system
  - ls -lt /var/log/syslog* (to see for how long those file being generated)



kira.mizuky

  • Guest
Reply #2 on: September 22, 2012, 03:46:38 PM
thanks,
but i was delete them (syslog.1 n kern.log--not syslog but syslog.1--) for their directory /var/log/
is it danger for my BB system?



ZEROF

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • Pen Tester
Reply #3 on: September 22, 2012, 09:20:54 PM
Hi kira.mizuky,

Removing lof files time to time it's ok, but, (hope not) when you have some problems with packages etc.. error logs can give you the reponse. And, when you delete them, new logo files will be made, no need to worry about.


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


kira.mizuky

  • Guest
Reply #4 on: September 23, 2012, 05:29:47 AM
@All: Ok, thanks for the explanation.
this makes me learn more