BookmarkSubscribeRSS Feed
vgp2
Calcite | Level 5

For a campaign I am able to view the "modified by" and "date modified" in the UI as attached in screen shot but can you please suggest if there is a log I can find where I can know who are the users that made changes in the past for a particular campaign and what are the changes that they did. 

 

Screen Shot 2018-04-13 at 2.33.42 PM.png

 

 

 

3 REPLIES 3
pcapazzi
Pyrite | Level 9

The closest I can come to this is:

 

You could turn on auto-generation of documents for a campaign diagram which would show you changes between executions at a high level (diagram, actual SQL executed). It would not provide you a list of changes and who made them.

 

The only other way is go through the MA Core Logs. Taking the date, time and user of the last modification you could find the last session and filter (grep in Linux) for rows matching that session ID (session ID being the 2nd item in []'s in the log after [CIExec-###]). It would probably be WAY more detailed that you could possibly want but that may be close to what you are looking for. That would tell what happened during the last "Save" though... perhaps it was a change that occurred before that. That's a deeper challenge.

 

 

Dmitry_Alergant
Pyrite | Level 9

A while ago, our team had implemented a very sophisticated solution to solve this problem for one of our biggest SAS MA customers...

 

The solution was comprised of the following components:

  • A cron job that monitored CI Core log looking for "campaign saved" events when a user saved a campaign, every 15 minutes

  • For every identified campaign save event, running sasmaextract utility to extract a full campaign definition into an XML file

  • Committing that campaign XML as a file into an SVN repository under the name of the user who made the original save of a campaign, with a timestamp of the original campaign save event.   A folder structure in SVN repository was reflecting the folder structure in SAS MA metadata. 
  • A customized version of a WebSVN UI to provide users a lightweight browser-based view on that versioned campaign repository. So one could see a complete change history for every campaign (who made changes and when).

    P.S> These days we'd probably utilized GIT / Github, back then SVN was still somewhat relevant.

  • A customized version of a "diff" page of WebSVN that allowed one to compare two revisions of the same campaign (or two campaigns one with another) in details - what exactly has changed.  The page invoked a complex SAS script that parsed both campaigns XML (a portion that described a diagram), compared them node-by-node, and presented a diff result as a summary table:  added nodes, deleted nodes, changed node properties, changed connections.   This was the most complicated piece.

  • A "restore" button in WebSVN that allowed restoring a selected campaign version back into SAS MA repository using "sasmaimport" utility

Frankly speaking, this was quite a complex solution, required a lot of efforts to develop and to fix bugs... I would not recommend anyone developing the same thing from scratch, unless under a truly compelling need.  But it worked. Back then it was developed for v5.41, not sure if it was even updated to 6.5. 

 

 

 

-------
Dmitriy Alergant, Tier One Analytics
vgp2
Calcite | Level 5

Thanks a lot for the details it is very informative. We would not require all the components was hoping to get a list of users for made changes to a campaign from a log. Can you please suggest how to proceed further on this. 

How to improve email deliverability

SAS' Peter Ansbacher shows you how to use the dashboard in SAS Customer Intelligence 360 for better results.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1243 views
  • 2 likes
  • 3 in conversation