Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elastic/ecs-logging-php
https://github.com/elastic/ecs-logging-php
ecs elastic-common-schema filebeat logging monolog monolog-formatter php
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/elastic/ecs-logging-php
- Owner: elastic
- License: apache-2.0
- Created: 2019-10-09T17:39:51.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-20T13:08:14.000Z (3 months ago)
- Last Synced: 2024-12-16T15:16:52.885Z (9 days ago)
- Topics: ecs, elastic-common-schema, filebeat, logging, monolog, monolog-formatter, php
- Language: PHP
- Homepage:
- Size: 135 KB
- Stars: 19
- Watchers: 19
- Forks: 35
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://apm-ci.elastic.co/buildStatus/icon?job=apm-agent-php%2Fecs-logging-php-mbp%2Fmain)](https://apm-ci.elastic.co/job/apm-agent-php/job/ecs-logging-php-mbp/job/main/)
# ECS Logging for PHP
Transform your application logs to structured logs that comply with the [Elastic Common Schema (ECS)](https://www.elastic.co/guide/en/ecs/current/ecs-reference.html).
In combination with [Filebeat](https://www.elastic.co/products/beats/filebeat), send your logs directly to Elasticsearch and leverage [Kibana's Logs app](https://www.elastic.co/guide/en/observability/current/monitor-logs.html) 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](https://www.elastic.co/guide/en/ecs-logging/php/current/intro.html) to get started, or the [ecs-logging repo](https://github.com/elastic/ecs-logging) for other ECS logging libraries and more resources about ECS & logging.
---
## Install
```
composer require elastic/ecs-logging
```## Examples and Usage
* [Monolog v3.0](https://github.com/elastic/ecs-logging-php/blob/main/docs/Monolog_v3.md)## Library Support
* Currently only [Monolog:3.*](https://github.com/Seldaek/monolog) is supported.## References
* [Documentation](https://www.elastic.co/guide/en/ecs-logging/php/current/intro.html)
* Introduction to ECS [blog post](https://www.elastic.co/blog/introducing-the-elastic-common-schema).
* Logs UI [blog post](https://www.elastic.co/blog/infrastructure-and-logs-ui-new-ways-for-ops-to-interact-with-elasticsearch).## Contributing
See [contributing documentation](CONTRIBUTING.md).
## License
This software is licensed under the [Apache 2 license](https://github.com/elastic/ecs-logging-php/blob/main/LICENSE).