detect if the journal has been rotated?

Đang mở
#130 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python

Hướng nghiên cứu

Start with the journal poll() and get_end() entry points mentioned in the issue, then investigate how journald rotation affects the event stream. Determine whether the library exposes a reliable rotation signal or requires reopening after stale polling; done means documenting or implementing a clear detection path.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I'm using the poll method to tail the journald log in real time. However, when the journal is rotated, I predictably stop getting the next event. I seem to be able to use the get_end() method to detect the end of the journal - so I can re-open the journal after a certain period of stale time. But I was wondering if there is a more reliably method for detecting that the journal has been rotated so I can re-open the journal right away?

Thanks for the helpful library!

Ngôn ngữ chính
C
Star
522
Fork
79
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của systemd/python-systemd

Tất cả issue của systemd/python-systemd

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.