Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Daniel Quick 22 posts 74 karma points
    Dec 16, 2014 @ 10:46
    Daniel Quick
    0

    Unusual log entries in v 7.2.0

    Hello all

    Log files on production sites are showing the following (with slight variations) approximately every 77 seconds - I cannot find where this is being called from. Glad of any help! 

    2014-12-16 05:10:21,726 [7] INFO  umbraco.BusinessLogic.Log - [Thread 25] Log scrubbed.  Removed all items older than 2014-10-17 05:10:21

  • Daniel Quick 22 posts 74 karma points
    Dec 16, 2014 @ 13:37
    Daniel Quick
    0

    Previous posts referring to V 4.1.1 say that the settings are in /config/umbracosettings.config, however this key does not exist in that file in V7.

    The only reference I can find is in /bin/businesslogic.xml, where the value is read in  line 1653:

     

          <member name="P:umbraco.UmbracoSettings.AutoCleanLogs">
                <summary>
                Gets a value indicating whether the logs will be auto cleaned
                </summary>
                <value><c>true</c> if logs are to be automatically cleaned; otherwise, <c>false</c></value>
            </member>
  • Daniel Quick 22 posts 74 karma points
    Dec 16, 2014 @ 13:49
    Daniel Quick
    0

    OK, getting somewhere:

    From http://our.umbraco.org/documentation/using-umbraco/config-files/umbracoSettings/

    NOTE: in v7+ many of these settings are not explicitly contained in the configuration file that is shipped with Umbraco and most of these settings have default values assigned. These default values will be expressed below and you can insert these configuration items in the file to override the defaults.

    You can add a logging key to the /config/umbracosettings.config file. However the documentations does not mention the AutoCleanLogs setting, will report back as to whenther this has worked for others reference.

  • Daniel Quick 22 posts 74 karma points
    Dec 16, 2014 @ 13:56
    Daniel Quick
    0

    OK, that did not work, the Log Scrubbed entries are still being made :-(

  • Steve Morgan 1349 posts 4459 karma points c-trib
    Dec 18, 2014 @ 11:29
    Steve Morgan
    0

    I'm seeing this too - v7.2.1 installed via nuget.I'm writing custom log entries in a grid plugin in the Razor are you using    LogHelper.Info(...)  at all?

  • Daniel Quick 22 posts 74 karma points
    Dec 18, 2014 @ 11:30
    Daniel Quick
    0

    No? Please tell me more?

  • Steve Morgan 1349 posts 4459 karma points c-trib
    Dec 18, 2014 @ 12:07
    Steve Morgan
    0

    S'ok was trying to see if it was something I was doing too to zero in on the issue (to raise a bug). Do you just have a fairly standard Umbraco then? Nothing other than templates, razor etc?

  • Daniel Quick 22 posts 74 karma points
    Dec 18, 2014 @ 12:16
    Daniel Quick
    0

    The sites are running 7.2.0 as an upgrade from 7.1.6, they have a number of packages added:

    Contour
    ezSearch
    Analytics
    Config Tree
    301 URL tracker...

    Perhaps try a clean install with no packages and see if it  shows the same behaviour?

     

  • Daniel Quick 22 posts 74 karma points
    Dec 18, 2014 @ 12:46
    Daniel Quick
    0

    OK, I have done a clean install of 7.1.8 via webmatrix, and manually updated to 7.2.1, immediately the log entries started:

    2014-12-18 12:44:23,177 [13] INFO  umbraco.BusinessLogic.Log - [Thread 24] Log scrubbed.  Removed all items older than 2014-10-19 12:44:23
    

    So, it looks like a core isssue.

  • Steve Morgan 1349 posts 4459 karma points c-trib
    Dec 18, 2014 @ 13:44
    Steve Morgan
    0

    I have a totally clean install, no upgrades. It does look like a config setting is missing!?

  • Daniel Quick 22 posts 74 karma points
    Dec 18, 2014 @ 13:48
    Daniel Quick
    0

    I have reported this as a bug, hopeful the core team will be able to provide an answer!

    http://issues.umbraco.org/issue/U4-6038

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Dec 18, 2014 @ 14:04
    Sebastiaan Janssen
    1

    There's really nothing to worry about people, it's just cleaning the umbracoLog table, which we don't actually use any more so there's hardly anything in there (maybe some packages still write to it, but it's unlikely).

    So.. relax and enjoy the clean log table. :)

  • Steve Morgan 1349 posts 4459 karma points c-trib
    Dec 19, 2014 @ 10:08
    Steve Morgan
    0

    Won't somebody please think of the CPU cycles?!

     

    Seroiously though - thanks Seb, nice to know it can be ignored!  

  • Daniel Quick 22 posts 74 karma points
    Dec 19, 2014 @ 12:56
    Daniel Quick
    0

    Perhaps it could be scheduled for once a day, rather than once every minute?

  • Daniel Quick 22 posts 74 karma points
    Mar 09, 2015 @ 17:37
    Daniel Quick
    0

    Any movement on this core team? I raised this issue months ago, and it persists through several releases. It is not a show stopper, but it would be nice to not have the logs fill up with this stuff, and it has to have an impact on performance!

  • Matthew Kirschner 323 posts 611 karma points
    Mar 09, 2015 @ 20:35
    Matthew Kirschner
    0

    I agree. Having the log scrubbed message pop up all the time makes it annoying to search for actual log messages.

  • Matt 76 posts 280 karma points
    Mar 10, 2015 @ 07:10
    Matt
    0

    I think adding this to your umbracoSettings.config fixes it so it only runs once a day?

    <logging>
        <cleaningMiliseconds>86400000</cleaningMiliseconds>
      </logging>
  • Daniel Quick 22 posts 74 karma points
    Mar 10, 2015 @ 09:29
    Daniel Quick
    0

    Thanks Matt

     

    a useful lead, but it would be nice if the core team could address the issue!

     

    I will try that on  a couple of sites and see if it cures the problem.

Please Sign in or register to post replies

Write your reply to:

Draft