Data purging
Learn about purging data in the IBM MobileFirst™ Platform Operational Analytics.
By default, data that is stored in the Analytics Platform is not automatically deleted. To enable automatic purging of data, the time to live (TTL) property must be set for each data type.
The TTL for analytics data types that are stored in the Analytics Platform can be set by using JNDI properties. For more information about analytics data types, see Operational analytics.
The following table shows the TTL properties:
Property Name | Description |
---|---|
TTL_CustomData | Time to live for custom data. |
TTL_MfpAppLogs | Time to live for client logs, such as client-side captured logs, and stack traces. |
TTL_MfpAppPushAction | Time to live for application push actions. |
TTL_ServerLogs | Time to live for server logs. |
TTL_ServerNetworkTransactions | Time to live for server network transactions. |
TTL_ServerPushNotifications | Time to live for server push notifications. |
TTL_ServerPushSubscriptions | Time to live for server push subscriptions. |
Note: All JNDI properties must be preceded with the analytics/ string.
For more information about JNDI properties, see JNDI properties.
Three document types are not configured with a TTL property and
therefore documents of this type are automatically purged:
- CustomCharts
- Devices
- MobileUsers
By default, the format for the TTL is in milliseconds. TTL can
also be set by using a number followed by a character that represents
the time interval:
- d (days)
- m (minutes)
- h (hours)
- ms (milliseconds)
- w (weeks)
The following example shows how to set the custom data TTL to one
day in milliseconds:
<jndiEntry jndiName="analytics/TTL_CustomData" value="86400000" />
The following example shows how to set the client logs data TTL
to five days:
<jndiEntry jndiName="analytics/TTL_MfpAppLogs" value="5d" />
The following example shows how to set the server logs TTL to one
week:
<jndiEntry jndiName="analytics/TTL_ServerLogs" value="1w" />
Note: The TTL properties are not applied to data that exists in the
Analytics Platform. You must set the TTL properties before you add
data.