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

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 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.5k6177196) | 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.layout.ConversionPattern=%d{ISO8601} %m %n
log4j.logger.scm_scaa=TRACE, scm_scaa

That would go into <jazz_install>/server/conf/<app>/ 

<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

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.