You can set up a max of 2000 number of events per device/app by using http://yourHubIP/hub/advanced/event/limit/100 link/command.
Just replace yourHubIP with your hub's IP and 100 with number of events to keep
You can check the current max number by accessing:
/hub/advanced/event/limit