elastic / elastic/ecs-logging-java
Write SequenceNumber in jboss-logmanager-ecs-formatter
- Ngôn ngữ chính
- Java
- Star
- 148
- Fork
- 82
- Merge trung bình
- 2 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 3
Mô tả
Hi,
because the "@timestamp" fields in ECS logging only support millisecond-precision, a sequence number is needed to keep the order of events. Adding this sequence number in FileBeat does not seem possible - only workarounds exist which include disabling multithreading (see https://discuss.elastic.co/t/sequence-number-for-ecs-events-received-by-tcp/291348 ).
Thus, the ECS formatter should add the sequence number ( https://www.elastic.co/guide/en/ecs/current/ecs-event.html#field-event-sequence ).
In case of the `co.elastic.logging.jboss.logmanager.EcsFormatter` this should be trivial as the `ExtLogRecord` from which the JSON is built already includes a method `getSequenceNumber`.
Adding the sequence number would solve a range of other issues regarding to log event order.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu tại co.elastic.logging.jboss.logmanager.EcsFormatter và theo dõi cách ExtLogRecord được chuyển đổi thành JSON. Kiểm tra định nghĩa của trường ECS event.sequence và phạm vi kiểm thử hiện có của formatter, nội dung mà issue không nêu. Hoàn thành có nghĩa là đầu ra của formatter bao gồm số thứ tự của record trong cấu trúc sự kiện ECS.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- observability-sre
- Loại issue
- Tính năng
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 55/100