Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rundeck log rotation
log4j.appender.cmd-logger=org.apache.log4j.RollingFileAppender
log4j.appender.cmd-logger.append=true
log4j.appender.cmd-logger.layout=org.apache.log4j.PatternLayout
log4j.appender.cmd-logger.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c - %m%n
log4j.appender.cmd-logger.File=/var/log/rundeck/command.log
log4j.appender.cmd-logger.rollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
log4j.appender.cmd-logger.rollingPolicy.ActiveFileName=/var/log/rundeck/command.log
log4j.appender.cmd-logger.rollingPolicy.FileNamePattern=/var/log/rundeck/command-%d{yyyy-MM-dd}.log
log4j.appender.cmd-logger.MaxBackupIndex=7
log4j.appender.server-logger=org.apache.log4j.RollingFileAppender
log4j.appender.server-logger.append=true
log4j.appender.server-logger.layout=org.apache.log4j.PatternLayout
log4j.appender.server-logger.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c - %m%n
log4j.appender.server-logger.File=/var/log/rundeck/rundeck.log
log4j.appender.server-logger.rollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
log4j.appender.server-logger.rollingPolicy.ActiveFileName=/var/log/rundeck/rundeck.log
log4j.appender.server-logger.rollingPolicy.FileNamePattern=/var/log/rundeck/rundeck-%d{yyyy-MM-dd}.log
log4j.appender.server-logger.MaxBackupIndex=7
log4j.appender.audit=org.apache.log4j.RollingFileAppender
log4j.appender.audit.append=true
log4j.appender.audit.layout=org.apache.log4j.PatternLayout
log4j.appender.audit.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c - %m%n
log4j.appender.audit.File=/var/log/rundeck/audit.log
log4j.appender.audit.rollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
log4j.appender.audit.rollingPolicy.ActiveFileName=/var/log/rundeck/audit.log
log4j.appender.audit.rollingPolicy.FileNamePattern=/var/log/rundeck/audit-%d{yyyy-MM-dd}.log
log4j.appender.audit.MaxBackupIndex=7
log4j.appender.options=org.apache.log4j.RollingFileAppender
log4j.appender.options.append=true
log4j.appender.options.layout=org.apache.log4j.PatternLayout
log4j.appender.options.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c - %m%n
log4j.appender.options.File=/var/log/rundeck/rundeck.options.log
log4j.appender.options.rollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
log4j.appender.options.rollingPolicy.ActiveFileName=/var/log/rundeck/rundeck.options.log
log4j.appender.options.rollingPolicy.FileNamePattern=/var/log/rundeck/rundeck.options-%d{yyyy-MM-dd}.log
log4j.appender.options.MaxBackupIndex=7
log4j.appender.storage=org.apache.log4j.RollingFileAppender
log4j.appender.storage.append=true
log4j.appender.storage.layout=org.apache.log4j.PatternLayout
log4j.appender.storage.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c - %m%n
log4j.appender.storage.File=/var/log/rundeck/rundeck.storage.log
log4j.appender.storage.rollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
log4j.appender.storage.rollingPolicy.ActiveFileName=/var/log/rundeck/rundeck.storage.log
log4j.appender.storage.rollingPolicy.FileNamePattern=/var/log/rundeck/rundeck.storage-%d{yyyy-MM-dd}.log
log4j.appender.storage.MaxBackupIndex=7
log4j.appender.jobchanges=org.apache.log4j.RollingFileAppender
log4j.appender.jobchanges.append=true
log4j.appender.jobchanges.layout=org.apache.log4j.PatternLayout
log4j.appender.jobchanges.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c - %m%n
log4j.appender.jobchanges.File=/var/log/rundeck/rundeck.jobs.log
log4j.appender.jobchanges.rollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
log4j.appender.jobchanges.rollingPolicy.ActiveFileName=/var/log/rundeck/rundeck.jobs.log
log4j.appender.jobchanges.rollingPolicy.FileNamePattern=/var/log/rundeck/rundeck.jobs-%d{yyyy-MM-dd}.log
log4j.appender.jobchanges.MaxBackupIndex=7
log4j.appender.execevents=org.apache.log4j.RollingFileAppender
log4j.appender.execevents.append=true
log4j.appender.execevents.layout=org.apache.log4j.PatternLayout
log4j.appender.execevents.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c - %m%n
log4j.appender.execevents.File=/var/log/rundeck/rundeck.executions.log
log4j.appender.execevents.rollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
log4j.appender.execevents.rollingPolicy.ActiveFileName=/var/log/rundeck/rundeck.executions.log
log4j.appender.execevents.rollingPolicy.FileNamePattern=/var/log/rundeck/rundeck.executions-%d{yyyy-MM-dd}.log
log4j.appender.execevents.MaxBackupIndex=7
log4j.appender.apirequests=org.apache.log4j.RollingFileAppender
log4j.appender.apirequests.append=true
log4j.appender.apirequests.layout=org.apache.log4j.PatternLayout
log4j.appender.apirequests.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c - %m%n
log4j.appender.apirequests.File=/var/log/rundeck/rundeck.api.log
log4j.appender.apirequests.rollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
log4j.appender.apirequests.rollingPolicy.ActiveFileName=/var/log/rundeck/rundeck.api.log
log4j.appender.apirequests.rollingPolicy.FileNamePattern=/var/log/rundeck/rundeck.api-%d{yyyy-MM-dd}.log
log4j.appender.apirequests.MaxBackupIndex=7
log4j.appender.access=org.apache.log4j.RollingFileAppender
log4j.appender.access.append=true
log4j.appender.access.layout=org.apache.log4j.PatternLayout
log4j.appender.access.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c - %m%n
log4j.appender.access.File=/var/log/rundeck/rundeck.access.log
log4j.appender.access.rollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
log4j.appender.access.rollingPolicy.ActiveFileName=/var/log/rundeck/rundeck.access.log
log4j.appender.access.rollingPolicy.FileNamePattern=/var/log/rundeck/rundeck.access-%d{yyyy-MM-dd}.log
log4j.appender.access.MaxBackupIndex=7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment