Friday, June 10, 2016

IBM Connections : how extend metrics data retention from the default value

IBM Connections metrics default data retention is 12 month that couldn't fit all kind of customers

If you need to have a longest retention inside metrics database, you have modify the value inside the configurations.

Open a wsadmin prompt 

cd /opt/ibm/WebSphere/AppServer/profiles/Dmgr01/bin
./wsadmin.sh -lang jython -user waslocal -password password

and then make a metrics checkout config

execfile("metricsAdmin.py")
MetricsConfigService.checkOutConfig("/opt/ibm/tmp","connectionsCell01")

now edit the metrics-config.xml and raise up the default value as needed like the following example

<databaseCleanup>
                <eventLifetimeInMonths>24</eventLifetimeInMonths>
 </databaseCleanup>


checkin the metrics config

MetricsConfigService.checkInConfig("/opt/ibm/tmp","connectionsCell01")

and restar connections

No comments:

Post a Comment