It's all about the answers!

Ask a question

[RTC] Is it possible to log information about files downloaded from the web UI in a SCM component?


Andre Gusmao (801937) | asked Jun 15 '15, 1:48 p.m.
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!

Accepted answer


permanent link
Kevin Ramer (4.5k6173191) | answered Jun 15 '15, 2:15 p.m.
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.

Andre Gusmao selected this answer as the correct answer

Comments
Andre Gusmao commented Jun 15 '15, 4:38 p.m.

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!!!

Your answer


Register or to post your answer.