• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    debug log file size

    Scheduled Pinned Locked Moved Official API - Evok
    5 Posts 3 Posters 3.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Merv
      last edited by

      Hi,

      I'm getting a lot of log entries in /var/log/debug and /var/log/daemon.log files. They are getting huge, and not rolling over to make it easy to delete the older files. Can I reduce the level of logging from evok?

      Thanks.
      Merv.

      T 1 Reply Last reply
      Reply Quote 0
      • T
        tomas_hora administrators @Merv
        last edited by

        @Merv Could you share an example of the entries of both logs?

        The logging level can be changed in /etc/systemd in evok.service file available options described online.

        1 Reply Last reply
        Reply Quote 0
        • M
          Merv
          last edited by

          The log entries look as follows:
          Feb 13 08:19:23 VacuumPLC evok[425]: [I 170213 08:19:23 web:1971] 200 GET /rest/relay/2_01/ (::1) 1.81ms
          Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/ai/1_01 (::1) 1.81ms
          Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_01/ (::1) 1.92ms
          Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_02/ (::1) 1.76ms
          Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_03/ (::1) 1.81ms
          Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_04/ (::1) 1.90ms
          Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_05/ (::1) 1.80ms
          Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_06/ (::1) 1.81ms
          Feb 13 08:19:24 VacuumPLC evok[425]: [I 170213 08:19:24 web:1971] 200 GET /rest/relay/2_02/ (::1) 1.93ms
          Feb 13 08:19:25 VacuumPLC evok[425]: [I 170213 08:19:25 web:1971] 200 GET /rest/ai/1_01 (::1) 1.79ms

          The cause of them is my python program that is monitoring the status of a vacuum sensor, and checking what pumps are on and off, and switching pumps on and off. but, while I want to keep checking the status of the relays, I dont need to be creating so much debug activity. I'll take a look at the links you sent me.
          Merv.

          M 1 Reply Last reply
          Reply Quote 0
          • M
            Merv @Merv
            last edited by

            I've tried setting the SysLogLevel parameter to a few different values, it's currently set to "emerg" which should report almost nothing.

            The lines (as above) are now being written to daemon.log (as before) but now also into the syslog file.

            Still puzzled...

            1 Reply Last reply
            Reply Quote 0
            • U
              ubee
              last edited by

              @Merv,

              I have the same problem. It doesn't help to change the log level in the service file. It still continues dumping info about every read attempt which is annoying. I guess the "I" in the log indicates log level is Info. And it remains I whatever level you set.

              1 Reply Last reply
              Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post