[RTC] Is it possible to log information about files downloaded from the web UI in a SCM component?
Hello,
I'm looking for a way to log in ccm.log (or any other log file) every file downloaded using the web UI that belongs to a SCM component. I know that by default this information is not logged, but I thought that maybe there could be a specific log4j parameter that I could include in log4j.properties in the RTC server to make it log downloads made from a SCM component through the web UI.
Thanks in advance!
I'm looking for a way to log in ccm.log (or any other log file) every file downloaded using the web UI that belongs to a SCM component. I know that by default this information is not logged, but I thought that maybe there could be a specific log4j parameter that I could include in log4j.properties in the RTC server to make it log downloads made from a SCM component through the web UI.
Thanks in advance!
Accepted answer
There are several items relating to access to SCM files.
Here's one of my examples:
log4j.appender.scm_scaa=org.apache.log4j.DailyRollingFileAppender
log4j.appender.scm_scaa.layout=org.apache.log4j.PatternLayout
log4j.appender.scm_scaa.DatePattern='.'yyyy-MM-dd
log4j.appender.scm_scaa.layout.ConversionPattern=%d{ISO8601} %m %n
log4j.appender.scm_scaa.File=/scaalogs/rtc-server-9443-jazz.log
log4j.appender.scm_scaa.MaxBackupIndex=2
log4j.logger.scm_scaa=TRACE, scm_scaa
log4j.additivity.scm_scaa=false
That would go into <jazz_install>/server/conf/<app>/log4j.properties
<jazz_install> is where the server code installed
<app> is the name of the installed CCM application.
The logs aren't that readable as some data is the UUID of a component or file. e.g.
2015-06-15 14:13:33,323 SCAA:rxie/FileItem,workflow.list.filters.ejs,_9LF7wOc2EeSQQOf0VdCYOw,_PAh5tBIgEeWHhd56G-MzmQ/Patch-App,_FdGF4KkfEeOUJvYZnNQnFA
2015-06-15 14:13:33,416 SCAA:rxie/FileItem,workflow.list.filters.ejs,_9LF7wOc2EeSQQOf0VdCYOw,_BiMdwvg0EeSHhd56G-MzmQ/Patch-App,_FdGF4KkfEeOUJvYZnNQnFA
rxie in this example is the user ID.
Here's one of my examples:
log4j.appender.scm_scaa=org.apache.log4j.DailyRollingFileAppender
log4j.appender.scm_scaa.layout=org.apache.log4j.PatternLayout
log4j.appender.scm_scaa.DatePattern='.'yyyy-MM-dd
log4j.appender.scm_scaa.layout.ConversionPattern=%d{ISO8601} %m %n
log4j.appender.scm_scaa.File=/scaalogs/rtc-server-9443-jazz.log
log4j.appender.scm_scaa.MaxBackupIndex=2
log4j.logger.scm_scaa=TRACE, scm_scaa
log4j.additivity.scm_scaa=false
That would go into <jazz_install>/server/conf/<app>/log4j.properties
<jazz_install> is where the server code installed
<app> is the name of the installed CCM application.
The logs aren't that readable as some data is the UUID of a component or file. e.g.
2015-06-15 14:13:33,323 SCAA:rxie/FileItem,workflow.list.filters.ejs,_9LF7wOc2EeSQQOf0VdCYOw,_PAh5tBIgEeWHhd56G-MzmQ/Patch-App,_FdGF4KkfEeOUJvYZnNQnFA
2015-06-15 14:13:33,416 SCAA:rxie/FileItem,workflow.list.filters.ejs,_9LF7wOc2EeSQQOf0VdCYOw,_BiMdwvg0EeSHhd56G-MzmQ/Patch-App,_FdGF4KkfEeOUJvYZnNQnFA
rxie in this example is the user ID.
Comments
Thanks Kevin. That's exactly what I needed! Just one more question about your example:
2015-06-15 14:13:33,416 SCAA:rxie/FileItem,workflow.list.filters.ejs,_9LF7wOc2EeSQQOf0VdCYOw,_BiMdwvg0EeSHhd56G-MzmQ/Patch-App,_FdGF4KkfEeOUJvYZnNQnFA
rxie is the userID
workflow.list.filters.ejs is the name of the file you downloaded
_9LF7wOc2EeSQQOf0VdCYOw is the UUID of the file you downloaded
_FdGF4KkfEeOUJvYZnNQnFA is the component UUID
Patch-App is the name of the component
So what is _BiMdwvg0EeSHhd56G-MzmQ in this case? Stream UUID? Project Area UUID?
Thanks again!!!