Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/collective/collective.fingerpointing
Keep track of different events and write them down to an audit log.
https://github.com/collective/collective.fingerpointing
Last synced: 2 months ago
JSON representation
Keep track of different events and write them down to an audit log.
- Host: GitHub
- URL: https://github.com/collective/collective.fingerpointing
- Owner: collective
- Created: 2015-04-20T12:16:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-27T15:37:30.000Z (about 2 years ago)
- Last Synced: 2024-11-02T19:33:48.037Z (2 months ago)
- Language: Python
- Homepage: https://pypi.org/project/collective.fingerpointing/
- Size: 404 KB
- Stars: 5
- Watchers: 118
- Forks: 5
- Open Issues: 21
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
Awesome Lists containing this project
- awesome-plone - collective.fingerpointing - Keeps track of different events and write them down to an audit log. (Sysadmin)
README
.. image:: https://raw.githubusercontent.com/collective/collective.fingerpointing/master/docs/fingerpointing.png
:align: left
:alt: Finger Pointing
:height: 100px
:width: 100px***************
Finger Pointing
***************.. contents:: Table of Contents
Life, the Universe, and Everything
==================================Finger Pointing is a basic audit logger that helps you keep record of events like user login/logout and content types objects life cycle.
All events are logged into the standard Zope log and, optionally, to a dedicated audit log file.Other features included:
- configurable via control panel configlet
- log entries can be easily visualized by users with permissions to do so
- support for Cloudflare's ``CF-Connecting-IP`` request header to log real client IP addresses
- support for automatic log rotation based on audit log file sizeTranslations
------------This product has been translated into
- Brazilian Portuguese
- Chinese Simplified
- French
- German
- SpanishMostly Harmless
===============.. image:: http://img.shields.io/pypi/v/collective.fingerpointing.svg
:target: https://pypi.python.org/pypi/collective.fingerpointing.. image:: https://img.shields.io/travis/collective/collective.fingerpointing/master.svg
:target: http://travis-ci.org/collective/collective.fingerpointing.. image:: https://img.shields.io/coveralls/collective/collective.fingerpointing/master.svg
:target: https://coveralls.io/r/collective/collective.fingerpointingGot an idea? Found a bug? Let us know by `opening a support ticket`_.
.. _`opening a support ticket`: https://github.com/collective/collective.fingerpointing/issues
Known Issues
------------Running your site behind a CDN may result in inconsistent IP addresses being logged.
Don't Panic
===========Installation
------------To enable this package in a buildout-based installation:
Edit your buildout.cfg and add the following to it:
.. code-block:: ini
[buildout]
...
eggs =
collective.fingerpointingBy default, Finger Pointing logs audit events to the Zope event log only.
To enable logging to a separate file use the following configuration:.. code-block:: ini
[instance]
zope-conf-additional +=
audit-log ${buildout:directory}/var/log/audit.log
audit-log-max-size 10485760
audit-log-old-files 30
audit-log
The filename of the audit log. Add file name to create Finger Pointing audit file.
audit-log-max-size
Maximum size of audit log file (in bytes). Adding this max size 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.
.. figure:: https://raw.githubusercontent.com/collective/collective.fingerpointing/master/docs/controlpanel.png
:align: center
:height: 600px
:width: 768pxThe Finger Pointing control panel configlet.
Finger Pointing will start logging the selected events:
.. code-block:: console
# 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=loginThese events are also logged in `var/log/audit.log`:
.. code-block:: console
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=loginAn audit log view is available in the user menu to users with the `collective.fingerpointing: View Audit Log` permission:
.. figure:: https://raw.githubusercontent.com/collective/collective.fingerpointing/master/docs/audit-log-view.png
:align: left
:alt: Finger Pointing
:height: 480px
:width: 768pxThe Finger Pointing audit log view.
If you didn't specify a Finger Pointing audit log file name, you'll see a warning.
However, audit events will be normally logged to the Zope event log:.. code-block:: console
# 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