grouper-users - Re: [grouper-users] log file compression
Subject: Grouper Users - Open Discussion List
List archive
- From: Ben Beecher <>
- To: Paul Engle <>
- Cc:
- Subject: Re: [grouper-users] log file compression
- Date: Mon, 22 Jan 2018 12:27:06 -0500
- Ironport-phdr: 9a23:i6pOwBO1G9hKefafjucl6mtUPXoX/o7sNwtQ0KIMzox0LfX5rarrMEGX3/hxlliBBdydt6odzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlViDanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0vRz+s87lkRwPpiCcfNj427mfXitBrjKlGpB6tvgFzz5LIbI2QMvd1Y6HTcs4ARWdZXMlRWSxPDI2/YYUSEeQOIf1VoJPhq1YUtxayGRWgCeHpxzRVhnH2x6o60+E5HAzbwgMgGc8FvWnKo9rrKKgSUf66zLPVxjjEdPxZxyny55TIch8/u/GBRq5/cc3VyUkyEgPKlVSQppb/MzyLy+sNrnGW4ux9Xuysk24qsxx9riasy8s2ioTEgpgZx1La+Sljzos4IcW0RFBnbdOgCpddtCGXO5FoTs8/TGxkoiQ3xqEAtJWmZiYF0o4nyATaa/Gfc4iH/BbjVOGJLDd/mXJlZKq/hwy18Ue9z+3zTMi00FJWoiZYiNXDqmwC2wbP5ciATvt940Kh1i2O1w/J8O1LP107lbfDJ54gxL4/iIYTvFzeEiPom0j6lq+be0E+9uWq9ejreLvrq5uEO49xkA7+M6AumsKlAeQ/NwgDR2ib9v+i2LDs5kD2XLJKjvkrkqncq5/aJN4UqrSnDABIz4Yv8wy/ACu+0NQEgXkHK0pIeB2dj4juJlHOOO73De2mj1Sxizdk2erGPqb6D5XJL3jDi6vhfa1j50JGyQozy8xf6IxOCrEHPv3zRlH9uMbGARAkLgzni9rgXe10y4dWdGSABqLRZLvft1CM68o1IuKBIoIZpWCuBeIi4qvEgHlxs1IQdqmkx9NDYn21FfRrOW2SZn7xh90AGCEHshdoH7+is0GLTTMGPyX6ZKk7/DxuTdv+VYo=
Paul,
Log file compression is working now. Thanks very much.
Ben
On Fri, Jan 19, 2018 at 4:46 PM, Paul Engle <> wrote:
Ben,
I think you need to have a property for
log4j.appender.grouper_error.rollingPolicy defined explicitly. The
examples I'm seeing would be something like:
log4j.appender.grouper_error.rollingPolicy=org.apache. log4j.rolling. FixedWindowRollingPolicy
-paul
--
On 1/19/2018 2:00 PM, Ben Beecher wrote:
> 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
Paul Engle
Office of Information Technology
713-348-4702
- [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.