{"id":25080,"date":"2013-09-09T12:57:23","date_gmt":"2013-09-09T12:57:23","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/observer\/"},"modified":"2016-04-02T00:45:10","modified_gmt":"2016-04-02T00:45:10","slug":"observer","status":"publish","type":"plugin","link":"https:\/\/cn.wordpress.org\/plugins\/observer\/","author":86565,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.4","stable_tag":"trunk","tested":"4.5.33","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Observer","header_author":"Andy Whalen","header_description":"","assets_banners_color":"","last_updated":"2016-04-02 00:45:10","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/amwhalen.com","header_author_uri":"http:\/\/amwhalen.com","rating":5,"author_block_rating":0,"active_installs":0,"downloads":1443,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[83,8533,1522,441,325],"plugin_category":[51],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-25080","plugin","type-plugin","status-publish","hentry","plugin_tags-admin","plugin_tags-audit","plugin_tags-logging","plugin_tags-multisite","plugin_tags-network","plugin_category-multisite","plugin_committers-anukit"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/observer.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Creates a log file for network\/multisite super admin actions.<\/p>\n <p>The following actions are logged for Super Admin users. WordPress action names are listed in parenthesis:<\/p>\n <ul>\n<li>change network settings (update_site_option)<\/li>\n<li>grant super admin privileges  (granted_super_admin)<\/li>\n<li>revoke super admin privileges (revoked_super_admin)<\/li>\n<li>upgrade blog (wpmu_upgrade_site)<\/li>\n<li>add blog (wpmu_new_blog)<\/li>\n<li>set blog archived (archive_blog\/unarchive_blog)<\/li>\n<li>set blog deleted (make_delete_blog\/make_undelete_blog)<\/li>\n<li>set blog mature (mature_blog\/unmature_blog)<\/li>\n<li>set blog spam (make_spam_blog\/make_ham_blog)<\/li>\n<li>delete blog (delete_blog)<\/li>\n<li>delete user (wpmu_delete_user)<\/li>\n<li>delete user (deleted_user)<\/li>\n<li>change other user's settings (edit_user_profile_update) [NOTE: doesn't show diff]<\/li>\n<li>change blog setting (updated_option) [NOTE: may occasionally log annoyingly large diffs]<\/li>\n<\/ul>\n <p>The following actions are logged for ANY user:<\/p>\n <ul>\n<li>login (wp_login)<\/li>\n<li>logout (wp_logout)<\/li>\n<li>new user (user_register)<\/li>\n<\/ul>\n <p>Some actions that change data will show what the value was before and after.<\/p>\n <p>Below is an example of a log entry when the user 'smith' has changed the Network site name from \"WP Local Network\" to \"WP Local Networks\":<\/p>\n <pre><code>[Tue, 03 Sep 2013 13:45:49 +0000] [smith:1] [update_site_option] [1] [site_name] [(WP Local Network)-&gt;(WP Local Networks)] [127.0.0.1] <\/code><\/pre>\n <p>Each line in the log file will roughly follow the below example. Individual actions may log slightly different information, but the DATETIME, USERNAME, USER_ID, ACTION, and IP_ADDRESS sections should always be populated.<\/p>\n <pre><code>[DATETIME] [USERNAME:USER_ID] [ACTION] [AFFECTED_OBJECT_ID] [DATA_TITLE_OR_KEY] [(VALUE_BEFORE)-&gt;(VALUE_AFTER)] [IP_ADDRESS] <\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload Observer to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Define the 'OBSERVER_LOG' constant in your wp-config.php file. Example: define('OBSERVER_LOG', '\/var\/log\/wordpress_observer.log');<\/li>\n<li>Network Activate the plugin through the 'Plugins' menu in the Network Plugins interface.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>None yet.<\/p>\n\n<!--section=changelog-->\n<h4>1.0.4<\/h4>\n <ul>\n<li>Compatible with WP 4.4.2.<\/li>\n<\/ul>\n <h4>1.0.3<\/h4>\n <ul>\n<li>Added better logging for all options that store arrays, so the log shows only what was added or removed.<\/li>\n<\/ul>\n <h4>1.0.2<\/h4>\n <ul>\n<li>Made the 'active_plugins' option log more readable by identifying which plugin was activated or deactivated.<\/li>\n<\/ul>\n <h4>1.0.1<\/h4>\n <ul>\n<li>Added some more ignored option updates.<\/li>\n<\/ul>\n <h4>1.0.0<\/h4>\n <ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Creates a log file for network\/multisite super admin actions.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/25080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=25080"}],"author":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/anukit"}],"wp:attachment":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=25080"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=25080"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=25080"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=25080"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=25080"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=25080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}