All Projects → egeniq → monolog-gdpr

egeniq / monolog-gdpr

Licence: MIT license
Some Monolog processors that help with GDPR compliance

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to monolog-gdpr

slim-skeleton
Slim Framework skeleton application following MVC construction
Stars: ✭ 18 (-63.27%)
Mutual labels:  monolog
monolog-http
A collection of monolog handlers that use a PSR-18 HTTP Client to send your logs
Stars: ✭ 34 (-30.61%)
Mutual labels:  monolog
prowler
Prowler is an Open Source Security tool for AWS, Azure and GCP to perform Cloud Security best practices assessments, audits, incident response, compliance, continuous monitoring, hardening and forensics readiness. It contains hundreds of controls covering CIS, PCI-DSS, ISO27001, GDPR, HIPAA, FFIEC, SOC2, AWS FTR, ENS and custom security frameworks.
Stars: ✭ 8,046 (+16320.41%)
Mutual labels:  gdpr
monolog-telegram-handler
Monolog handler to send log by Telegram
Stars: ✭ 32 (-34.69%)
Mutual labels:  monolog
REST-Api-with-Slim-PHP
REST API with PHP Slim Framework 3 and MySQL
Stars: ✭ 69 (+40.82%)
Mutual labels:  monolog
logger
A Monolog-based logging tool for WordPress. Supports storing log message in a custom post type or in individual posts and terms.
Stars: ✭ 20 (-59.18%)
Mutual labels:  monolog
Log Killer
Clear all your logs in [linux/windows] servers 🛡️
Stars: ✭ 252 (+414.29%)
Mutual labels:  logs
yii2-monolog
Yii 2 Monolog extension
Stars: ✭ 39 (-20.41%)
Mutual labels:  monolog
monolog-sentry-handler
Monolog handler for Sentry PHP SDK v2 with breadcrumbs support
Stars: ✭ 34 (-30.61%)
Mutual labels:  monolog
Monolog Bundle
Symfony Monolog Bundle
Stars: ✭ 2,532 (+5067.35%)
Mutual labels:  monolog
codeigniter-monolog-plus
codeigniter monolog plus
Stars: ✭ 13 (-73.47%)
Mutual labels:  monolog
monolog-google-cloud-json-formatter
A Monolog extension for formatting log entries for Google Cloud Logging
Stars: ✭ 15 (-69.39%)
Mutual labels:  monolog
Monolog Bridge
Provides integration for Monolog with various Symfony components.
Stars: ✭ 2,238 (+4467.35%)
Mutual labels:  monolog
laravel-log-mailer
A package to support logging via email in Laravel
Stars: ✭ 14 (-71.43%)
Mutual labels:  monolog
hugo-component-matomo
Matomo user tracking and optout scripts for Hugo
Stars: ✭ 38 (-22.45%)
Mutual labels:  gdpr
Mtail
extract internal monitoring data from application logs for collection in a timeseries database
Stars: ✭ 3,028 (+6079.59%)
Mutual labels:  logs
enlite-monolog
Monolog integration to Laminas
Stars: ✭ 17 (-65.31%)
Mutual labels:  monolog
kubectl-tmux-logs
A kubectl plugin to display container logs within separate tmux panes
Stars: ✭ 19 (-61.22%)
Mutual labels:  logs
tutorials
Tutorials
Stars: ✭ 80 (+63.27%)
Mutual labels:  logs
Easy Log Handler
Human-friendly log files that make you more productive
Stars: ✭ 2,070 (+4124.49%)
Mutual labels:  monolog

monolog-gdpr Build Status

Some Monolog processors that will help in relation to the security requirements under GDPR. These processors will replace data with their SHA-1 equivalent, allowing you still to search logs

WARNING: These processors will json serialise your $context. This may cause some undesired side-effects.

Installation

Install the latest version with

$ composer require egeniq/monolog-gdpr

Salted hashes

This library supports salted hashes using processor->setSalt(<salt>). To compute your hashed value you could use the following bash command:

$ echo -n '[email protected]<YourSalt>' | openssl sha1

RedactEmailProcessor

Replaces all e-mail addresses by their SHA-1 hash.

Usage:

<?php

use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Egeniq\Monolog\Gdpr\Processor\RedactEmailProcessor;

$log = new Logger('name');
$log->pushHandler(new StreamHandler('path/to/your.log', Logger::WARNING));

$processor = new RedactEmailProcessor();
// optionally you may configure a salt:
$processor->setSalt('h@tsefl@ts!');
$log->pushProcessor($processor);

$log->log(Logger::DEBUG, 'This is a test for [email protected]', ['foo' => ['bar' => '[email protected]']]);

RedactIpProcessor

Replaces all ipv4 addresses by their SHA-1 hash.

Usage:

<?php

use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Egeniq\Monolog\Gdpr\Processor\RedactIpProcessor;

$log = new Logger('name');
$log->pushHandler(new StreamHandler('path/to/your.log', Logger::WARNING));

$processor = new RedactIpProcessor();

// optionally you may configure a salt:
$processor->setSalt('h@tsefl@ts!');
$log->pushProcessor($processor);

$log->log(Logger::DEBUG, 'This is a test for 127.0.0.1', ['foo' => ['bar' => '127.0.0.1']]);

License

Package is licensed under the MIT License - see the LICENSE file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].