Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Accepted answer

Permanent link
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

1 vote

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

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,202
× 43
× 15

Question asked: Jun 15 '15, 1:48 p.m.

Question was seen: 3,307 times

Last updated: Jun 15 '15, 4:38 p.m.

Confirmation Cancel Confirm