I need help with an existing variable of drupal
The "Database log messages to keep" tells the site how many entries to store in "Recent Log Messages" (/admin/reports/dblog). It stores a record of watchdog events and php warning/errors, etc. 

The limit is stored in the variable table, under the variable name of dblog_row_limit.