Database retention settings

Database retention settings

I would like to understand how the database is managed. What is the default retention time for data? Is this configurable and if so, where?
I'm not worried about size yet, but I do want to understand how long event data is kept in the database.