Announcement

Collapse
No announcement yet.

How to stop error logging

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to stop error logging

    Hello,

    My /var/log/messages is filling up with the following error:
    Code:
    kernel: [ 157.253836] atkbd.c: Use 'setkeycodes e00d <keycode>' to make it known.
    I don't care about fixing the error right now (I'll explain below). I would like to learn how to stop the error reporting feature so I don't loose any more disk space and processor power. If that's not possible then please teach me a way to clear the message file. I would then setup some sort of scheduled task that cleans it up few times a day.

    The reason why I am not looking for a fix in this thread:
    1) After researching the problem I am convinced that the problem is caused by Dell hardware and not Kubuntu.
    2) My system is running fine.
    3) I have found dozens of threads regarding this error. Most of them are still left unsolved. I am going through the solved ones one at time and trying the solutions that were offered. I think it will take a week to try them all.

    I thank you in advance for your assistance.

    #2
    Re: How to stop error logging

    I realey dont know the anser to your queshton .

    BUT when I want to clear out log files I do it like this .

    open dolphin as root.......do NOT use just sudo .....do

    Code:
    kdesudo dolphin
    now if the log is a singell file I will open it and delete all the text but leave the file...(just becose I dont realey know if the loger will regenerate it)

    if it's multipull files I'll delete them all but the last one.

    as for turning off the loger ........wate for one of the other fellas/gall's I'm shure some one will cime in on that

    ☯VINNY☯
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      Re: How to stop error logging

      Thank you for your reply.
      I just went to the log directory through dolphin.

      This error message is going nuts on the following files.
      messages, messages.1, syslog.

      Is it safe clear them all? Is there a way to do it through command line? That way I'll just copy and paste everyday without screwing things up.

      Comment


        #4
        Re: How to stop error logging

        These are system generated log files. It is safe to remove them - they will be rebuilt.

        From the CLI:
        Code:
        sudo rm /var/log/messages*.gz; sudo rm /var/log/syslog*.gz
        This will remove all the 'archived' logs for these two. If you want them all removed, then:
        Code:
        sudo rm /var/log/messages*; sudo rm /var/log/syslog*
        Using Kubuntu Linux since March 23, 2007
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: How to stop error logging

          Originally posted by ryy705
          Hello,

          My /var/log/messages is filling up with the following error:
          Code:
          kernel: [ 157.253836] atkbd.c: Use 'setkeycodes e00d <keycode>' to make it known.
          I don't care about fixing the error right now (I'll explain below). I would like to learn how to stop the error reporting feature so I don't loose any more disk space and processor power. If that's not possible then please teach me a way to clear the message file. I would then setup some sort of scheduled task that cleans it up few times a day.
          Every 24 hours the following should happen automatically
          /var/log/messages.4.gz is deleted
          /var/log/messages.3.gz -> /var/log/messages.4.gz
          /var/log/messages.2.gz -> /var/log/messages.3.gz
          /var/log/messages.1 -> /var/log/messages.2.gz
          /var/log/messages -> /var/log/messages.1
          A new /var/log/messages is created

          I wouldn't worry too much about the "processor power" being lost

          Comment


            #6
            Re: How to stop error logging

            Originally posted by ryy705
            My /var/log/messages is filling up with the following error:
            Code:
            kernel: [ 157.253836] atkbd.c: Use 'setkeycodes e00d <keycode>' to make it known.
            That error message usually happens when the wrong keyboard layout is selected. What is selected on your machine?
            K -> System Settings -> Regional & Language -> Keyboard Layout -> Keyboard model

            Comment


              #7
              Re: How to stop error logging

              I ran your command and rebooted successfully. Thank you.

              Comment

              Working...
              X