Title: Keep logs confuguration
Last modified: August 31, 2016

---

# Keep logs confuguration

 *  Resolved [evvivan](https://wordpress.org/support/users/evvivan/)
 * (@evvivan)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/keep-logs-confuguration/)
 * Hi all,
    i have istalled this plugin but i have a problem to set the days to 
   keep activity log because never accept the change after press the ‘Save Change’
   button. The value is always 30 days. How can i resolve it? Thanks!
 * [https://wordpress.org/plugins/user-activity-log/](https://wordpress.org/plugins/user-activity-log/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [odessey](https://wordpress.org/support/users/odessey/)
 * (@odessey)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/keep-logs-confuguration/#post-6998859)
 * I also have this issue I cannot change the days it always defaults to 30 days?
 *  [steviger](https://wordpress.org/support/users/steviger/)
 * (@steviger)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/keep-logs-confuguration/#post-6998870)
 * Same here. I found this in user_settings_menu on line 874:
 *     ```
       <th><?php _e('Keep logs for', 'wp_user_log'); ?></th>
                                   <td>
                                       <input type="number" step="1" min="1" value="30" name="logdel">
       ```
   
 * But even change the value doesn’t do the trick.
 * Help is much appreciated
 *  [whitefirdesign](https://wordpress.org/support/users/whitefirdesign/)
 * (@whitefirdesign)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/keep-logs-confuguration/#post-6998871)
 * At least in version 1.2.3 of the plugin, the value submitted is not actually 
   saved anywhere in the plugin, so that is why it reverts back to 30 days. It is
   only used in the following code that deletes logs older than the specified number
   of days:
 *     ```
       if (isset($_POST['submit_display'])) {
       	$time_ago = $_POST['logdel'];
       	$wpdb->query("DELETE FROM wp_user_activity WHERE modified_date < NOW() - INTERVAL $time_ago DAY");
       }
       ```
   
 *  [steviger](https://wordpress.org/support/users/steviger/)
 * (@steviger)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/keep-logs-confuguration/#post-6998872)
 * So when I edit wp_options > activity log settings in the database it will keep
   the log for 365 days?
 * Current code: a:1:{s:13:”logs_lifespan”;s:2:”30″;}
 * New code: a:1:{s:13:”logs_lifespan”;s:2:”365″;}
 * Regards,
 * Steven
 *  Plugin Author [solwininfotech](https://wordpress.org/support/users/solwininfotech/)
 * (@solwininfotech)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/keep-logs-confuguration/#post-6998873)
 * Hi guys,
 * We have just read the tree. We will consider all this changes for next version
   of plugin and if required to provide settings option in backend then we will 
   sure provide that option with plugin by default instead of custom coding.
 * Many thanks to all forum members who participated with this forum and provided
   guidenance to plugin users.
 *  [steviger](https://wordpress.org/support/users/steviger/)
 * (@steviger)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/keep-logs-confuguration/#post-6998874)
 * Ok cool! But for now? How exactly can I make sure the log will be deleted only
   after 365 days?
 *  Plugin Author [solwininfotech](https://wordpress.org/support/users/solwininfotech/)
 * (@solwininfotech)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/keep-logs-confuguration/#post-6998875)
 * Hi steviger,
 * You mean you want to check logs are actually deleted or not those contains entry
   before 365 days.
 * Am I right?
 * **[@steviger](https://wordpress.org/support/users/steviger/)** : We are providing
   priority support on our [support site](http://support.solwininfotech.com). If
   you are looking for more features with this plugin then you can send your queries
   there.
 *  [steviger](https://wordpress.org/support/users/steviger/)
 * (@steviger)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/keep-logs-confuguration/#post-6998876)
 * Basicly I’d like to keep the logs for 365 days that’s all.
 *  [steviger](https://wordpress.org/support/users/steviger/)
 * (@steviger)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/keep-logs-confuguration/#post-6998877)
 * For now that is. I might try your priority support soon for further question.
   But this one is kinda urgent 😉
 *  Plugin Author [solwininfotech](https://wordpress.org/support/users/solwininfotech/)
 * (@solwininfotech)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/keep-logs-confuguration/#post-6998878)
 * Hi steviger,
 * we have cross checked at our end with number of environments and it’s working
   nice here. I can easily change that ‘Keep Logs’ value to 365 days.
 * Can you please create a support ticket with our support site with more details?
 * Thanks in advance!
 *  [steviger](https://wordpress.org/support/users/steviger/)
 * (@steviger)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/keep-logs-confuguration/#post-6998879)
 * Ok thanks!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Keep logs confuguration’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/user-activity-log_2b5346.svg)
 * [User Activity Log](https://wordpress.org/plugins/user-activity-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-activity-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-activity-log/)
 * [Active Topics](https://wordpress.org/support/plugin/user-activity-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-activity-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-activity-log/reviews/)

 * 11 replies
 * 5 participants
 * Last reply from: [steviger](https://wordpress.org/support/users/steviger/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/keep-logs-confuguration/#post-6998879)
 * Status: resolved