Keep track of different events and write them down to an audit log.
Project description
Finger Pointing
Life, the Universe, and Everything
Keep track of different events and write them down to an audit log.
Mostly Harmless
Got an idea? Found a bug? Let us know by opening a support ticket.
Known Issues
Running your site behind a CDN may result in inconsistent IP addresses being logged. In CloudFlare, for instance, you can work around this limitation by enabling a feature called ‘’True-Client-IP Header’’, but it requires an Enterprise plan.
Don’t Panic
Installation
To enable this package in a buildout-based installation:
Edit your buildout.cfg and add add the following to it:
[buildout]
...
eggs =
collective.fingerpointing
After updating the configuration you need to run ‘’bin/buildout’’, which will take care of updating your system.
Go to the ‘Site Setup’ page in a Plone site and click on the ‘Add-ons’ link.
Check the box next to collective.fingerpointing and click the ‘Activate’ button.
Usage
Go to ‘Site Setup’ and select ‘Finger Pointing’ and enable the events you want to keep an eye on.
Finger Pointing will start logging the selected events:
# bin/instance fg
2016-03-01 17:29:29 INFO ZServer HTTP server started at Tue Mar 1 17:29:29 2016
Hostname: 0.0.0.0
Port: 8080
2016-03-01 17:29:31 INFO collective.fingerpointing Start logging audit information to audit.log
2016-03-01 17:29:34 INFO Plone OpenID system packages not installed, OpenID support not available
2016-03-01 17:29:37 INFO Zope Ready to handle requests
2016-03-01 17:31:40 INFO collective.fingerpointing user=admin ip=127.0.0.1 action=logged out
2016-03-01 17:31:49 INFO collective.fingerpointing user=admin ip=127.0.0.1 action=logged in
These events are also logged in var/log/audit.log:
2016-03-01 17:31:40,813 - INFO - user=admin ip=127.0.0.1 action=logged out
2016-03-01 17:31:49,678 - INFO - user=admin ip=127.0.0.1 action=logged in
An audit log view is available in the user menu to users with the collective.fingerpointing: View Audit Log permission:
Audit log files are rotated automatically every day at midnight and up to 30 days are maintained in backup.
Changelog
1.0b4 (2016-07-07)
Avoid UnicodeEncodeError with log messages. [jianaijun, rodfersou]
Support automatic rotation of audit log files at timed intervals; a new file is created every day and up to 30 backup files are maintained (closes #9). [hvelarde]
Use object representation to log life cycle events; this fixes an issue with Archetypes-based objects being dumped to the log (refs. #8 and fixes #38). [hvelarde]
Package is now compatible with Plone 5.0 and Plone 5.1. [hvelarde]
1.0b3 (2016-04-19)
Added Chinese Simplified translation. [jianaijun]
Package no longer rises AttributeError when running interactive console (bin/instance debug) (fixes #30). [hvelarde]
Clean up audit log messages. [hvelarde]
Disable rendering of left and right columns in audit log view. [hvelarde]
Audit log entries are now shown in reverse order (newer entries first). [hvelarde]
1.0b2 (2016-03-18)
Log to audit.log even if Zope’s event-log-level is above INFO (fixes #25). [fRiSi]
Add German translations. [fRiSi]
Fix output of the audit log view. [pcdummy, hvelarde]
Add Brazilian Portuguese and Spanish translations. [hvelarde]
The “View Audit log” action appears now before the “Log out” one (fixes #18). [pcdummy, hvelarde]
Use main_template for the audit log view. [pcdummy]
Avoid TypeError while running third party tests (fixes #2). [hvelarde]
1.0b1 (2016-03-09)
Add a view for the audit.log file @@fingerpointing-audit-log and link it to portal_actions. [pcdummy, hvelarde]
Make control panel configlet accesible to Site Administrator role (closes #15). [hvelarde]
Avoid ComponentLookupError when removing a Plone site (fixes #4). [hvelarde]
Remove unused plone.directives.form dependency which pulled in Grok packages. [vangheem]
Audit information is now logged into a file named audit.log instead of inside the standard event.log. [pcdummy]
Package is now compatible with Plone 5. [hvelarde]
Ignore errors caused by subscribers trying to access nonexistent registry records when package is still not installed (fixes #1). [hvelarde]
1.0a1 (2015-06-08)
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.fingerpointing-1.0b4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ddf2860d163af0a7ed83ff88775055419076f2d75d26cdbb6bb5fb37bc49c65 |
|
MD5 | 7e536552ea2d0eab20b4427b1204f187 |
|
BLAKE2b-256 | d9dcbf3ad91e18cf3b773b4700c2ebe03607a15ca7fcf6d8c5a9f4634b256c4e |