Actions
User story #3357
closedLog information about registered properties when Rudder starts
Status:
Released
Priority:
3
Assignee:
Category:
Web - Maintenance
Target version:
Pull Request:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:
Description
We want to be able to see properties registered into Rudder when it starts.
These properties log must:
- be logged in the webapp and system log, at "info" level
- hide passwords,
- each line are in the form: """registered property:property_name=property_value""", where the part after the colon is the same as what is in the property file.
Updated by François ARMAND almost 12 years ago
PR here: https://github.com/Normation/rudder/pull/148
Output example:
[2013-03-18 16:45:55] INFO application - List of registered properties: registered property: awt.toolkit="sun.awt.X11.XToolkit" registered property: bin.emergency.stop="/opt/rudder/bin/cfe-red-button.sh" registered property: file.encoding.pkg="sun.io" registered property: file.separator="/" registered property: history.inventories.rootdir="/var/rudder/inventories/historical" registered property: java.awt.graphicsenv="sun.awt.X11GraphicsEnvironment" registered property: java.awt.printerjob="sun.print.PSPrinterJob" registered property: java.class.path="/home/fanf/java/eclipse-3.7_scala2.10/configuration/org.eclipse.osgi/bundles/477/1/.cp/lib/jsp-2.1.jar:/home/fanf/java/eclipse-3.7_scala2.10/configuration/org.eclipse.osgi/bundles/477/1/.cp/lib/jetty-util-6.1.26.jar:/home/fanf/java/eclipse-3.7_scala2.10/configuration/org.eclipse.osgi/bundles/477/1/.cp/lib/run-jetty-run-bootstrap.jar:/home/fanf/java/eclipse-3.7_scala2.10/configuration/org.eclipse.osgi/bundles/477/1/.cp/lib/servlet-api-2.5-20081211.jar:/home/fanf/java/eclipse-3.7_scala2.10/configuration/org.eclipse.osgi/bundles/477/1/.cp/lib/jetty-management-6.1.26.jar:/home/fanf/java/eclipse-3.7_scala2.10/configuration/org.eclipse.osgi/bundles/477/1/.cp/lib/core-3.1.1.jar:/home/fanf/java/eclipse-3.7_scala2.10/configuration/org.eclipse.osgi/bundles/477/1/.cp/lib/jetty-6.1.26.jar:/home/fanf/java/eclipse-3.7_scala2.10/configuration/org.eclipse.osgi/bundles/477/1/.cp/lib/jsp-api-2.1.jar:/home/fanf/java/jrebel/jrebel.jar" registered property: java.class.version="51.0" registered property: java.endorsed.dirs="/home/fanf/java/jdk1.7.0_13/jre/lib/endorsed" registered property: java.ext.dirs="/home/fanf/java/jdk1.7.0_13/jre/lib/ext:/usr/java/packages/lib/ext" registered property: java.home="/home/fanf/java/jdk1.7.0_13/jre" registered property: java.io.tmpdir="/tmp" registered property: java.library.path="/opt/e17/lib::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib" registered property: java.runtime.name="Java(TM) SE Runtime Environment" registered property: java.runtime.version="1.7.0_13-b20" registered property: java.specification.name="Java Platform API Specification" registered property: java.specification.vendor="Oracle Corporation" registered property: java.specification.version="1.7" registered property: java.vendor.url.bug="http://bugreport.sun.com/bugreport/" registered property: java.version="1.7.0_13" registered property: java.vm.info="mixed mode" registered property: java.vm.name="Java HotSpot(TM) 64-Bit Server VM" registered property: java.vm.specification.name="Java Virtual Machine Specification" registered property: java.vm.specification.vendor="Oracle Corporation" registered property: java.vm.specification.version="1.7" registered property: java.vm.vendor="Oracle Corporation" registered property: java.vm.version="23.7-b01" registered property: ldap.authdn="cn=manager,cn=rudder-configuration" registered property: ldap.authpw=********** registered property: ldap.host="localhost" registered property: ldap.inventories.accepted.basedn="ou=Accepted Inventories, ou=Inventories, cn=rudder-configuration" registered property: ldap.inventories.pending.basedn="ou=Pending Inventories, ou=Inventories, cn=rudder-configuration" registered property: ldap.inventories.removed.basedn="ou=Removed Inventories, ou=Inventories, cn=rudder-configuration" registered property: ldap.inventories.software.basedn="ou=Inventories, cn=rudder-configuration" registered property: ldap.node.base="cn=rudder-configuration" registered property: ldap.port="1389" registered property: ldap.rudder.base="ou=Rudder, cn=rudder-configuration" registered property: line.separator="\n" registered property: logback.configurationFile="/home/fanf/java/workspaces/rudder-project/static-config/logback.xml" registered property: os.arch="amd64" registered property: os.name="Linux" registered property: os.version="3.5.0-11-generic" registered property: path.separator=":" registered property: rudder.autoArchiveItems="true" registered property: rudder.autoDeployOnModification="true" registered property: rudder.batch.databasecleaner.runtime.day="sunday" registered property: rudder.batch.databasecleaner.runtime.hour="0" registered property: rudder.batch.databasecleaner.runtime.minute="0" registered property: rudder.batch.dyngroup.updateInterval="5" registered property: rudder.batch.reports.logInterval="1" registered property: rudder.batch.reportscleaner.archive.TTL="30" registered property: rudder.batch.reportscleaner.delete.TTL="90" registered property: rudder.batch.reportscleaner.frequency="daily" registered property: rudder.batch.techniqueLibrary.updateInterval="5" registered property: rudder.community.checkpromises.command="/var/rudder/cfengine-community/bin/cf-promises" registered property: rudder.community.port="5309" registered property: rudder.configFile="/home/fanf/java/workspaces/rudder-project/static-config/configuration-rudder-2.5.properties" registered property: rudder.dir.backup="/var/rudder/backup/" registered property: rudder.dir.dependencies="/var/rudder/tools" registered property: rudder.dir.gitRoot="/var/rudder/configuration-repository-2.5" registered property: rudder.dir.licensesFolder="/opt/rudder/etc/licenses" registered property: rudder.dir.lock="/var/rudder/lock/" registered property: rudder.dir.shared.files.folder="/var/rudder/configuration-repository-2.5/shared-files" registered property: rudder.dir.techniques="/var/rudder/configuration-repository-2.5/techniques" registered property: rudder.dir.uploaded.file.sharing="/var/rudder/files/" registered property: rudder.endpoint.cmdb="http://localhost:8080/endpoint/upload/" registered property: rudder.jdbc.driver="org.postgresql.Driver" registered property: rudder.jdbc.password=********** registered property: rudder.jdbc.url="jdbc:postgresql://localhost:15432/rudder" registered property: rudder.jdbc.username="rudder" registered property: rudder.nova.checkpromises.command="/bin/true" registered property: rudder.rest.allowNonAuthenticatedUser="true" registered property: rudder.syslog.port="514" registered property: rudder.techniqueLibrary.git.refs.path="refs/heads/master" registered property: rudder.ui.changeMessage.enabled="true" registered property: rudder.ui.changeMessage.explanation="Please enter a message explaining the reason for this change." registered property: rudder.ui.changeMessage.mandatory="false" registered property: rudder.webdav.password=********** registered property: rudder.webdav.user="rudder" registered property: sun.arch.data.model="64" registered property: sun.boot.class.path="/home/fanf/java/eclipse-3.7_scala2.10/configuration/org.eclipse.osgi/bundles/533/1/.cp/lib/scala-library.jar:/home/fanf/java/eclipse-3.7_scala2.10/configuration/org.eclipse.osgi/bundles/533/1/.cp/lib/scala-swing.jar:/home/fanf/java/eclipse-3.7_scala2.10/configuration/org.eclipse.osgi/bundles/533/1/.cp/lib/scala-actors.jar:/home/fanf/java/eclipse-3.7_scala2.10/configuration/org.eclipse.osgi/bundles/532/1/.cp/lib/scala-reflect.jar:/home/fanf/java/jdk1.7.0_13/jre/lib/resources.jar:/home/fanf/java/jdk1.7.0_13/jre/lib/rt.jar:/home/fanf/java/jdk1.7.0_13/jre/lib/sunrsasign.jar:/home/fanf/java/jdk1.7.0_13/jre/lib/jsse.jar:/home/fanf/java/jdk1.7.0_13/jre/lib/jce.jar:/home/fanf/java/jdk1.7.0_13/jre/lib/charsets.jar:/home/fanf/java/jdk1.7.0_13/jre/lib/jfr.jar:/home/fanf/java/jdk1.7.0_13/jre/classes:/home/fanf/java/jrebel-5.1.3/jrebel.jar" registered property: sun.boot.library.path="/home/fanf/java/jdk1.7.0_13/jre/lib/amd64" registered property: sun.cpu.endian="little" registered property: sun.cpu.isalist="" registered property: sun.io.unicode.encoding="UnicodeLittle" registered property: sun.java.command="runjettyrun.Bootstrap" registered property: sun.java.launcher="SUN_STANDARD" registered property: sun.jnu.encoding="UTF-8" registered property: sun.management.compiler="HotSpot 64-Bit Tiered Compilers" registered property: sun.os.patch.level="unknown" registered property: upload.root.directory="/var/rudder/files/" registered property: user.country="FR" registered property: user.dir="/home/fanf/java/workspaces/rudder-project/rudder/rudder-web" registered property: user.home="/home/fanf" registered property: user.language="fr" registered property: user.name="fanf" registered property: user.timezone="Europe/Paris" 2013-03-18 16:45:55.774:INFO:/rudder-web:Initializing Spring root WebApplicationContext
Updated by Jonathan CLARKE over 11 years ago
Looks good, apart from two things:
- This should be in the "core" log (aka "sysadmin log")
- Every line should be written individually, so that the date is displayed (we must never log multi-line logs to sysadmin log)
Updated by François ARMAND over 11 years ago
Done, now the format is the one used in the sysadmin log for "application" logs:
... [2013-03-26 15:46:43] INFO application - registered property: ldap.node.base="cn=rudder-configuration" [2013-03-26 15:46:43] INFO application - registered property: ldap.port="1389" [2013-03-26 15:46:43] INFO application - registered property: ldap.rudder.base="ou=Rudder, cn=rudder-configuration" [2013-03-26 15:46:43] INFO application - registered property: line.separator="\n" [2013-03-26 15:46:43] INFO application - registered property: logback.configurationFile="/home/fanf/java/workspaces/rudder-project/static-config/logback.xml" [2013-03-26 15:46:43] INFO application - registered property: os.arch="amd64 ...
Updated by Matthieu CERDA over 11 years ago
- Status changed from 12 to Pending release
Merge complete !
Updated by Jonathan CLARKE over 11 years ago
- Status changed from Pending release to Released
This ticket has been addressed in version 2.6.0~beta1 of Rudder, which has just been released. Please see the changelog here: https://www.rudder-project.org/foswiki/System/Documentation:ChangeLog26.
Actions