Assure DQ

 View Only
  • 1.  Manual Purge Log Location

    Posted 01-18-2022 07:41

    We are trying to update the log location for the manual purge.  If the IBM services are running they keep the igx logs locked so there are no log entries from the manual purge in this log.

    Previously we identified this was done in the cee.log4.properties files.  Below I have listed that file's contents.  Which setting am I changing in order to ONLY effect the manual purge output?

     

    #####################################################
    # Component Execution Environment Log4J Property File
    #
    # Created on August 5th, 2004
    # by clee@herzumsoftware.com
    #
    # Additional Log4J documentation can be found at:
    # http://logging.apache.org/log4j/docs/documentation.html
    #
    # To change the logging verbosity, change the logging level. Possible levels:
    # DEBUG, INFO, WARN, ERROR, FATAL

    ##### Root Logger #####
    # Unspecified categories will log only to the console
    #log4j.rootLogger=DEBUG, console

    ##### CEE #####
    log4j.category.cosm=INFO, iitap
    log4j.additivity.cosm=false

    log4j.category.client.cosm=INFO, client
    log4j.additivity.client.cosm=false

    ####### BEGIN IITAP/SOLUTION SPECIFIC LOG CONFIGURATION ########
    # Here you may specify the package names of developed components that you wish
    # to log.
    #
    # For example, if your base package is: org.your.example
    # log4j.category.org.your.example=INFO, iitap
    # log4j.additivity.org.your.example=false
    #
    # You may specify multiple packages in this fashion.

    log4j.category.com.google.api.client.http.HttpTransport=WARN, iitap
    log4j.additivity.com.google.api.client.http.HttpTransport=false

    log4j.category.com.unitechsys=INFO, iitap
    log4j.additivity.com.unitechsys=false

    log4j.category.com.infogix=INFO, iitap
    log4j.additivity.com.infogix=false

    # Debug logging for some sample categories.
    #log4j.category.com.unitechsys.facility.cache.impl.oscache=DEBUG, iitap
    #log4j.additivity.com.unitechsys.facility.cache.impl.oscache=false
    #log4j.category.cosm.cee.facility.persistencemgr.bulkload=DEBUG, iitap
    #log4j.additivity.cosm.cee.facility.persistencemgr.bulkload=false
    #log4j.category.com.infogix.insight=DEBUG, iitap
    #log4j.additivity.com.infogix.insight=false
    #log4j.category.com.infogix.iitap.component.ing=DEBUG, iitap
    #log4j.additivity.com.infogix.iitap.component.ing=false
    #log4j.category.com.unitechsys.acr.component.controlsassure.ent.impl=DEBUG, iitap

    log4j.category.org.hibernate=INFO, iitap
    log4j.additivity.org.hibernate=false
    log4j.category.org.hibernate.util.JDBCExceptionReporter=FATAL, iitap
    log4j.additivity.org.hibernate.util.JDBCExceptionReporter=false
    log4j.category.org.hibernate.event.def.AbstractFlushingEventListener=FATAL, iitap
    log4j.additivity.org.hibernate.event.def.AbstractFlushingEventListener=false
    log4j.category.org.hibernate.orm.deprecation=ERROR, iitap
    log4j.additivity.org.hibernate.orm.deprecation=false

    log4j.category.com.opensymphony=INFO, iitap
    log4j.additivity.com.opensymphony=false
    log4j.category.com.opensymphony.oscache.plugins.clustersupport=WARN, iitap
    log4j.additivity.com.opensymphony.oscache.plugins.clustersupport=false

    log4j.category.com.unitechsys.iitap.component.scheduler.quartz=INFO, iitap
    log4j.additivity.com.unitechsys.iitap.component.scheduler.quartz=false

    log4j.category.com.unitechsys.iitap.component.scheduler.export.job.QuartzCalendarJob=WARN, iitap
    log4j.additivity.com.unitechsys.iitap.component.scheduler.export.job.QuartzCalendarJob=false

    log4j.category.alarm.com.unitechsys=DEBUG, alarm
    log4j.additivity.alarm.com.unitechsys=true

    log4j.category.logaction.com.infogix=INFO, finding
    log4j.additivity.logaction.com.infogix=false

    ##########################################
    # loggers that record client output
    log4j.category.client.alarm.com.unitechsys=DEBUG, client-alarm
    log4j.additivity.client.alarm.com.unitechsys=true

    log4j.category.client.com.unitechsys=INFO, client
    log4j.additivity.client.com.unitechsys=false

    log4j.category.client.com.infogix=INFO, client
    log4j.additivity.client.com.infogix=false

    log4j.category.cosm.base.util.diagnostics=INFO, memorydiagnostic
    log4j.additivity.cosm.base.util.diagnostics=false
    ####### END IITAP/SOLUTION SPECIFIC LOG CONFIGURATION ########

    ##########################################
    # console is set to be a ConsoleAppender
    log4j.appender.console=org.apache.log4j.ConsoleAppender
    log4j.appender.console.layout=org.apache.log4j.PatternLayout
    log4j.appender.console.layout.ConversionPattern=%d{ISO8601} %-5p (%t) [%c]%m%n


    #########################################
    # iitap is set to be a RollingFileAppender
    #
    # Adjust the MaxFileSize to the desired size
    # Adjust the MaxBackupIndex to the number of files to roll over into.
    log4j.appender.iitap=org.apache.log4j.RollingFileAppender
    log4j.appender.iitap.File=D:/Infogix/logs/ER/ER/${infogix.uniqueServerName}-igx.log
    log4j.appender.iitap.Append=true
    log4j.appender.iitap.MaxFileSize=10000KB
    log4j.appender.iitap.MaxBackupIndex=10
    log4j.appender.iitap.layout=org.apache.log4j.PatternLayout
    log4j.appender.iitap.layout.ConversionPattern=%d{ISO8601} %-5p (%t) %x [%c]%m%n
    log4j.appender.iitap.filter.ID=cosm.base.log.ControlFilter
    log4j.appender.iitap.filter.ID.controlEntityToMatch=FindingActionLogging
    log4j.appender.iitap.filter.ID.controlPointToMatch=FindingActionLoggingCP1
    log4j.appender.iitap.filter.ID.acceptOnMatch=true

    #########################################
    # client is set to be a RollingFileAppender
    #
    # Adjust the MaxFileSize to the desired size
    # Adjust the MaxBackupIndex to the number of files to roll over into.
    log4j.appender.client=org.apache.log4j.RollingFileAppender
    log4j.appender.client.File=D:/Infogix/logs/ER/ER/${infogix.uniqueServerName}-igx-client.log
    log4j.appender.client.Append=true
    log4j.appender.client.MaxFileSize=10000KB
    log4j.appender.client.MaxBackupIndex=10
    log4j.appender.client.layout=org.apache.log4j.PatternLayout
    log4j.appender.client.layout.ConversionPattern=%d{ISO8601} %-5p (%t) [%c]%m%n

    #########################################
    # alarm is set to be a RollingFileAppender
    #
    # Adjust the MaxFileSize to the desired size
    # Adjust the MaxBackupIndex to the number of files to roll over into.
    log4j.appender.alarm=org.apache.log4j.RollingFileAppender
    log4j.appender.alarm.File=D:/Infogix/logs/ER/ER/${infogix.uniqueServerName}-igx-alarms.log
    log4j.appender.alarm.Append=true
    log4j.appender.alarm.MaxFileSize=10000KB
    log4j.appender.alarm.MaxBackupIndex=10
    log4j.appender.alarm.layout=org.apache.log4j.PatternLayout
    log4j.appender.alarm.layout.ConversionPattern=%d{ISO8601} %-5p (%t) [%c]%m%n

    #########################################
    # client-alarm is set to be a RollingFileAppender
    #
    # Adjust the MaxFileSize to the desired size
    # Adjust the MaxBackupIndex to the number of files to roll over into.
    log4j.appender.client-alarm=org.apache.log4j.RollingFileAppender
    log4j.appender.client-alarm.File=D:/Infogix/logs/ER/ER/${infogix.uniqueServerName}-igx-client-alarms.log
    log4j.appender.client-alarm.Append=true
    log4j.appender.client-alarm.MaxFileSize=10000KB
    log4j.appender.client-alarm.MaxBackupIndex=10
    log4j.appender.client-alarm.layout=org.apache.log4j.PatternLayout
    log4j.appender.client-alarm.layout.ConversionPattern=%d{ISO8601} %-5p (%t) [%c]%m%n

    log4j.appender.finding=org.apache.log4j.RollingFileAppender
    log4j.appender.finding.File=D:/Infogix/logs/ER/ER/${infogix.uniqueServerName}-log-action.log
    log4j.appender.finding.Append=true
    log4j.appender.finding.MaxFileSize=5000KB
    log4j.appender.finding.MaxBackupIndex=10
    log4j.appender.finding.layout=org.apache.log4j.PatternLayout
    log4j.appender.finding.layout.ConversionPattern=%d{ISO8601} %-5p [%c{1}]: %m%n

    log4j.category.com.infogix.component.persistence.ent.impl.EAdminAuditFLC=INFO, audit, console
    log4j.additivity.com.infogix.component.persistence.ent.impl.EAdminAuditFLC=false

    #########################################
    # adminconsole is set to be a RollingFileAppender
    #
    # Adjust the MaxFileSize to the desired size
    # Adjust the MaxBackupIndex to the number of files to roll over into.

    log4j.appender.audit=org.apache.log4j.RollingFileAppender
    log4j.appender.audit.File=D:/Infogix/logs/ER/ER/${infogix.uniqueServerName}-audit.log
    log4j.appender.audit.Append=true
    log4j.appender.audit.MaxFileSize=10000KB
    log4j.appender.audit.MaxBackupIndex=10
    log4j.appender.audit.layout=org.apache.log4j.PatternLayout
    log4j.appender.audit.layout.ConversionPattern=%d{ISO8601} %-5p (%t) %m%n

    log4j.appender.memorydiagnostic=org.apache.log4j.RollingFileAppender
    log4j.appender.memorydiagnostic.File=D:/Infogix/logs/ER/ER/${infogix.uniqueServerName}-memory-diagnostic.log
    log4j.appender.memorydiagnostic.Append=true
    log4j.appender.memorydiagnostic.MaxFileSize=10000KB
    log4j.appender.memorydiagnostic.MaxBackupIndex=10
    log4j.appender.memorydiagnostic.layout=org.apache.log4j.PatternLayout
    log4j.appender.memorydiagnostic.layout.ConversionPattern=%d{ISO8601} %-5p (%t) [%c]%m%n



  • 2.  RE: Manual Purge Log Location

    Employee
    Posted 01-18-2022 12:44

    Hi Jason,

    When possible, please elaborate on your "manual purge" process. For example, is this a home-made script the team runs?

    The "cee.log4j.properties" defines how the logs are built ( how many times it will roll over, file size, location, etc.. ). If the team finds there is a need to purge these logs from time-to-time, it may be worthwhile to review the log "roll over" or "size" values within this file.

    Matthew Kennedy



  • 3.  RE: Manual Purge Log Location

    Employee
    Posted 01-18-2022 12:57

    Looking at the file you posted :

    #########################################
    # iitap is set to be a RollingFileAppender
    #
    # Adjust the MaxFileSize to the desired size
    # Adjust the MaxBackupIndex to the number of files to roll over into.
    log4j.appender.iitap=org.apache.log4j.RollingFileAppender
    log4j.appender.iitap.File=D:/Infogix/logs/ER/ER/${infogix.uniqueServerName}-igx.log
    log4j.appender.iitap.Append=true
    log4j.appender.iitap.MaxFileSize=10000KB
    log4j.appender.iitap.MaxBackupIndex=10
    log4j.appender.iitap.layout=org.apache.log4j.PatternLayout
    log4j.appender.iitap.layout.ConversionPattern=%d{ISO8601} %-5p (%t) %x [%c]%m%n
    log4j.appender.iitap.filter.ID=cosm.base.log.ControlFilter
    log4j.appender.iitap.filter.ID.controlEntityToMatch=FindingActionLogging
    log4j.appender.iitap.filter.ID.controlPointToMatch=FindingActionLoggingCP1
    log4j.appender.iitap.filter.ID.acceptOnMatch=true

    #########################################

    Using this section as an example, it reads that the ER "IGX" logs are being written in 10000KB chunks before rolling over ( 10x ).. The team can update these settings as necessairy

    Matthew Kennedy