This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Help us improve Python packaging - Donate today!
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 the following to it:

[buildout]
...
eggs =
    collective.fingerpointing

By default, Finger Pointing logs audit events to the event log only. To enable logging to a separate file use the following configuration:

[instance]
zope-conf-additional +=
    <product-config collective.fingerpointing>
        audit-log ${buildout:directory}/var/log/audit.log
        audit-log-max-size 10240
        audit-log-old-files 30
    </product-config>
audit-log
The filename of the audit log. Defaults to none.
audit-log-max-size
Maximum size of audit log file. Enables log rotation.
audit-log-old-files
Number of previous log files to retain when log rotation is enabled. Defaults to 1.

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 Finger Pointing 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.

The Finger Pointing control panel configlet.

Finger Pointing will start logging the selected events:

# bin/instance fg
2016-09-26 15:23:36 INFO ZServer HTTP server started at Mon Sep 26 15:23:36 2016
    Hostname: 0.0.0.0
    Port: 8080
2016-09-26 15:23:41 INFO collective.fingerpointing Logging audit information to /home/hvelarde/collective/fingerpointing/var/log/audit.log
2016-09-26 15:23:49 INFO Plone OpenID system packages not installed, OpenID support not available
2016-09-26 15:23:56 INFO Zope Ready to handle requests
2016-09-26 15:24:19 INFO collective.fingerpointing user=admin ip=127.0.0.1 action=logout
2016-09-26 15:24:28 INFO collective.fingerpointing user=admin ip=127.0.0.1 action=login

These events are also logged in var/log/audit.log:

2016-09-26 15:24:19,717 - INFO - user=admin ip=127.0.0.1 action=logout
2016-09-26 15:24:28,415 - INFO - user=admin ip=127.0.0.1 action=login

An audit log view is available in the user menu to users with the collective.fingerpointing: View Audit Log permission:

The Finger Pointing audit log view.

If you specify no audit log file you’ll see a warning; however, audit events will be normally logged to the event log:

# bin/instance fg
2016-09-26 15:58:32 INFO ZServer HTTP server started at Mon Sep 26 15:58:32 2016
    Hostname: 0.0.0.0
    Port: 8080
2016-09-26 15:58:35 WARNING collective.fingerpointing No audit log file specified; audit log view will be disabled
2016-09-26 15:58:40 INFO Plone OpenID system packages not installed, OpenID support not available
2016-09-26 15:58:45 INFO Zope Ready to handle requests
2016-09-26 15:58:48 INFO collective.fingerpointing user=admin ip=127.0.0.1 action=logout
2016-09-26 15:58:54 INFO collective.fingerpointing user=admin ip=127.0.0.1 action=login

Share and Enjoy

This package would not have been possible without the contribution of the following people:

You can find an updated list of package contributors on GitHub.

Changelog

1.2b1 (2016-09-28)

Warning

Starting with this version you need to explicitly configure the package to use a separate audit.log file. Check the documentation to find out how to do so.

  • Make log rotating configurable using the zope-conf-additional option. Note that now, by default, rotating is disabled. [rene, hvelarde]

1.1b1 (2016-07-07)

  • Drop support for Plone 4.2. [hvelarde]
  • Log deletion of groups too. If you are using Plone < 4.3.8 you may need to update versions of Products.PlonePAS and Products.PluggableAuthService. [fRiSi]

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.
Release History

Release History

1.2b1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.1b1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0b4

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0b3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0b2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0b1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0a1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
collective.fingerpointing-1.2b1-py2-none-any.whl (46.9 kB) Copy SHA256 Checksum SHA256 py2 Wheel Sep 28, 2016
collective.fingerpointing-1.2b1.tar.gz (74.2 kB) Copy SHA256 Checksum SHA256 Source Sep 28, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting