mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-25 23:55:56 +03:00
[GH-ISSUE #1771] [LogstashFormatter] ECS support #750
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#750
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rneuter on GitHub (Nov 1, 2022).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1771
👋
I was wondering if Elastic Common Schema will be supported in the future.
For example, in the ECS, the host field should be an object but is set as a scalar string in the LogstashFormatter.
Since version 8 of the ELK stack, ECS is enabled by default on a new installation causing ingestion errors:
Log sent to Logstash from a classic Symfony / Monolog:
Logstash response:
Support of ECS will bring breaking changes but definitely avoid extra setup time on new installations, which should increase time after time.
I'm not sure of how many fields are concerned but from what I see maybe it's only the
hostfield.Let me know if you are interested about feedback or to discuss on this!
@Seldaek commented on GitHub (Feb 4, 2023):
I guess this could be a configurable flag on LogstashFormatter so one can enable ECS support, and maybe a deprecation warning if not enabled so people are nudged to migrate slowly and in monolog 4 we can enable by default?
@Seldaek commented on GitHub (Feb 4, 2023):
In any case PR welcome, I don't have access to an ECS stack so rather have someone knowledgeable do this.
@vivere-dally commented on GitHub (Dec 28, 2023):
I think renaming to
hostnameinstead ofhostwould be sufficent