elastic / ecs-logging
Format and enrich your log files in the elastic common schema
Installs: 545 701
Dependents: 1
Suggesters: 0
Security: 0
Stars: 19
Watchers: 19
Forks: 35
Open Issues: 14
Requires (Dev)
- monolog/monolog: ^3.0
- php-parallel-lint/php-parallel-lint: ^1.3.2
- phpunit/phpunit: ^8.5||^9.5||^10
- squizlabs/php_codesniffer: 3.*
Provides
- psr/log-implementation: 1.0.0
This package is auto-updated.
Last update: 2024-12-20 14:02:28 UTC
README
ECS Logging for PHP
Transform your application logs to structured logs that comply with the Elastic Common Schema (ECS). In combination with Filebeat, send your logs directly to Elasticsearch and leverage Kibana's Logs app to inspect all of your logs in a single place. This provides more observability for your PHP applications, for example, by correlating your logs with APM traces.
See the PHP ECS logging documentation to get started, or the ecs-logging repo for other ECS logging libraries and more resources about ECS & logging.
Install
composer require elastic/ecs-logging
Examples and Usage
Library Support
- Currently only Monolog:3.* is supported.
References
- Documentation
- Introduction to ECS blog post.
- Logs UI blog post.
Contributing
See contributing documentation.
License
This software is licensed under the Apache 2 license.