Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
Description
Current setup from archetype:
keepitemfor: how long items should be kept after they were created specified in milliseconds.
-1
maxitems: maximum number of items allowed in the event log.
-1
This means currently no logs will be cleaned up. In most cases you'd like to clean up more to reduce overhead. For instance, this can result in a lot of data and long indexing during startup. Suggested is cleaning any items over 50000 by setting maxitems. By default this will be done at 3 AM in the morning every night.
More info:
Indexing 50k log nodes should take around two minutes so it
isn't a big deal. Having the millions of log nodes is a big deal.
The logs are used for:
- recent activity plugin on the dashboard
- regular listener on the event bus. This is used when you create code to receive these events, otherwise it is not used.
Naturally you can / should adjust according to your own needs in your project.
See more info:
http://www.onehippo.org/7_8/library/administration/maintenance/event-log-cleanup.html