Linux Debian Logs

From FroggDev - En
Jump to: navigation, search

/etc/rsyslog.conf

log only errors & warnings

  • nano /etc/rsyslog.conf
auth.*,authpriv.*                                       /var/log/auth.log
*.warn,*.err,*.crit,*.alert,*.emerg                     /var/log/syslog
daemon.warn,daemon.err,daemon.alert,daemon.emerg        /var/log/daemon.log
kern.warn,kern.err,kern.crit,kern.alert,kern.emerg      /var/log/kern.log
lpr.warn , lpr.err, lpr.crit, lpr.alert,lpr.emerg       /var/log/lpr.log
mail.warn,mail.err,mail.crit,mail.alert,mail.emerg      /var/log/mail.log
user.warn,user.err,user.crit,user.alert,user.emerg      /var/log/user.log
news.warn,news.err,news.crit,news.alert,news.emerg      /var/log/news.log
cron.warn,cron.err,cron.crit,cron.alert,cron.emerg      /var/log/cron.log
  • displaying log
journalctl -b -p 3 #number is log level from 1 to 7

Error in logs

  • error in syslog
[Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future
[Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future	

change key_buffer by key_buffer_size and myisam-recover by myisam-recover-options in my.cnf

  • error in syslog
/usr/sbin/irqbalance: Balancing is ineffective on systems with a single cache domain.  Shutting down

disable irqbalance set ENABLED=0 in /etc/default/irqbalance

http://askubuntu.com/questions/17806/how-do-i-disable-irqbalance

  • error in user.log
 Oct 23 14:18:21 froggdebian vmsvc[510]: [ warning] [guestinfo] RecordRoutingInfo: Unable to collect IPv4 routing table.

add rtc.diffFromUTC=0 into .vmx file of the VM (in the esx)

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2048572

  • error in user.log
Oct 23 19:28:01 froggdebian vmsvc[511]: [ warning] [guestinfo] RecordRoutingInfo: Unable to collect IPv4 routing table.

rename libtimeSync.so in libtimeSync.so.bak

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2094561

https://communities.vmware.com/message/2398967

  • error in user.log
 NMI watchdog: disabled (cpu0): hardware events not enabled

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2031297

https://software.intel.com/en-us/articles/disable-nmi-watchdog-when-using-pmu-event-based-sampling

add nmi_watchdog=0 in /boot/grub/grub.cfg

  • remove cron messages

add the followig line before pam_unix.so call in /etc/pam.d/common-session-noninteractive

session [success=1 default=ignore] pam_succeed_if.so service in cron quiet use_uid

http://ubuntuforums.org/showthread.php?t=1256801

  • error of swap loading
Oct 23 16:39:15 froggdebian systemd[1]: Job dev-disk-by\x2duuid-ed79b1a6\x2debbb\x2d45d5\x2db21f\x2d9f1fb4b5226a.device/start timed out.
Oct 23 16:39:15 froggdebian systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-ed79b1a6\x2debbb\x2d45d5\x2db21f\x2d9f1fb4b5226a.device.

comment swap line in /etc/fstab

  • host error
Nov 12 09:00:01 froggdebian sm-msp-queue[26192]: My unqualified host name (froggdebian) unknown; sleeping for retry
Nov 12 09:01:02 froggdebian sm-msp-queue[26192]: unable to qualify my own domain name (froggdebian) -- using short name

edit /etc/hosts

127.0.0.1 localhost
127.0.0.1 home.frogg.fr home

launch

hostname home.frogg.fr

test result

hostname -f