API Usage Data Reports

Hi,

I have the following problem

TYK Dashboard does not work to get information.

I have the following record:

time=“Aug 9 10:14:08” level=warning msg=“Login opened from: X.X.X.X:59476”
time=“Aug 9 10:14:16” level=warning msg=“Successful login (X@X) from: X.X.X.X:59476”
time=“Aug 9 10:15:19” level=error msg=“Something went wrong, couldn’t get Api list”
time=“Aug 9 10:15:19” level=error msg=“read tcp 127.0.0.1:54500->127.0.0.1:27017: i/o timeout”
time=“Aug 9 10:15:19” level=error msg=“Something went wrong, couldn’t get Log data: read tcp 127.0.0.1:54500->127.0.0.1:27017: i/o timeout”
time=“Aug 9 10:16:28” level=error msg="Something went wrong, couldn’t get Log data: read tcp 127.0.0.1:46872->127.0.0.1:27017: i/o timeout”

Regards.

This might be because your mkngoDB has run out of memory and can’t operate on the data set.

How much dat have you recorded and how big is your DB server?

Server:
16 RAM
70GB

Confimed! The problem is by space in database. How can I clean the data?

Use a capped collection:

https://tyk.io/docs/frequently-asked-questions/capping-analytics-data-storage/

Thank you very much Martin, I solved the problem with the following:

“db.tyk_analytics.remove()”

Regards.