grouper-users - [grouper-users] log file compression
Subject: Grouper Users - Open Discussion List
List archive
- From: Ben Beecher <>
- To:
- Subject: [grouper-users] log file compression
- Date: Fri, 19 Jan 2018 15:00:12 -0500
- Ironport-phdr: 9a23:ExLDIBNUote6buKOVcwl6mtUPXoX/o7sNwtQ0KIMzox0LfjzrarrMEGX3/hxlliBBdydt6odzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlViDanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSkHOTA383zZhNJsg69Auh2tuwZyzpTIbI2JNvdzeL7Wc9MARWpGW8ZcTzFMDZ26b4ASEucOI/hXoJX9p1QQtxu1GA6hC/jxxTBWmnD23bM10/46HA7a2wwgG88OsHHPo9X0LqgeS/66w7TVzTjaaf5dxDTz6JDQfxw8v/2BXqh8fMrVxEU1FQ7JkE+cpIz4Mz+NyOgBr2yW4/BjWO+vkWIrtR99rza1yssxjoTEgoQYwU3e+ypj2oY6P9i4RVZ7YdG6FJtQsDmXN4xrQsM+W2FooiE6xaADuZGhfSgKzIgrywDFZ/Obb4eE+A7sVOGVITdlgXJqY7O/iAyo/Ue+1+L8S9G40FdMriVbjtnBrm0B2wLQ58SdSvZw+l2t1DSR2wzJ6uxIPFg4la/BJJ4gxr4wmIATsUPGHiLumEX5l7Gae0o/9+e07OTnZqjmppqHOI91kA7yKLohldGiAeggKAgBQ3Cb+fig1L3k5UD5T69KjvorkqnBrp/aP90XprOiAwBLyIYj8A2yDzOn0NQDgXkHN0xJdAiGj4jvJ1HBPur4DfGhjFSwjjtn3e7JMaD8AsaFEn+Wn63mYK5w8QtB0wcp1vhe4Y5ZELcMPKi1V0Ps5/LCCRpsGQGyi8zqBd5925lWDWiCD6SZPbn6uliM++clIuDKaYMI7mWuY8M57uLj2Cdq0WQWerOkiMMa
I would like to configure Grouper so that the old logs are compressed automatically.
I downloaded the apache-log4j-extras-1.2.17.jar file and installed it in GROUPER_HOME/lib/custom and in the WEB-INF/lib directories. I modified the log4j properties to include these directives:
log4j.appender.grouper_error=org.apache.log4j.rolling.RollingFileAppender
log4j.appender.grouper_error.rollingPolicy.maxIndex=7
log4j.appender.grouper_error.triggeringPolicy=org.apache.log4j.rolling.SizeBasedTriggeringPolicy
log4j.appender.grouper_error.triggeringPolicy.MaxFileSize=1024
log4j.appender.grouper_error.rollingPolicy.FileNamePattern=/var/log/tcat/grouperqat/grouper_error.log.%i.gz
log4j.appender.grouper_error.rollingPolicy.ActiveFileName=/var/log/tcat/grouperqat/grouper_error.log
log4j.appender.grouper_error.layout=org.apache.log4j.PatternLayout
log4j.appender.grouper_error.layout.ConversionPattern=%d [%t] %-5p (%F:%L) - %m%n
I get these errors when I start the Grouper shell:
log4j:WARN Please set a rolling policy for the RollingFileAppender named 'grouper_error'
log4j:ERROR No output stream or file set for the appender named [grouper_error].
Grouper starting up: version: 2.3.0, build date: null, env: dev
grouper.properties read from: /var/tomcat/grouperqat/webapps/grouper/WEB-INF/classes/grouper.properties
Grouper current directory is: /opt/apache-tomcat-7.0.82
log4j.properties read from: /var/tomcat/grouperqat/webapps/grouper/WEB-INF/classes/log4j.properties
Grouper error, file appender path is empty, maybe dir doesnt exist
Grouper is logging to file: at min level WARN for package: edu.internet2.middleware.grouper, based on log4j.properties
It seems to want TimeBasedRollingPolicy:
log4j.appender.file.RollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
but when I use that policy the file name must contain the date. I don't want the date to be part of the log file name since I am using a size based triggering policy. Any insight would be appreciated.
Ben
- [grouper-users] log file compression, Ben Beecher, 01/19/2018
- Re: [grouper-users] log file compression, Paul Engle, 01/19/2018
- Re: [grouper-users] log file compression, Ben Beecher, 01/22/2018
- Re: [grouper-users] log file compression, Paul Engle, 01/19/2018
Archive powered by MHonArc 2.6.19.