How long are errors kept for?

Document ID : KB000044171
Last Modified Date : 14/02/2018
Show Technical Document Details

 Question: 

 How long are errors held in the event database? A user was looking at a graph of Errors Per Interval for a Tomcat JVM and saw some errors on the graph. When clicking on the Errors tab they do not see anything. This is for a time period occurring about 8 days ago. When looking into any other JVM, I do not see any errors for this time period either.

 

 

 Environment:  

 All APM versions

 

 Answer: 

 What you are seeing is normal. The Errors Per Interval is a metric which is stored in the Smartstor DB and is bound to the Smartstor tier settings in the EM properties file.

 

 The error snapshot data is from Error Detector and that is stored in the traces db and is bound to the introscope.enterprisemanager.transactionevents.storage.max.data.age setting.

 

So the metric above should have historical data prior to 7 days ago depending on what your tier settings are.  If using Error Detector, then the snapshots will only be kept for 7 days according to your setting above.