[ZBXNEXT-4216] Modify logrt[] to process copy/truncate log file rotation (Z4) Created: 2017 Aug 25 Updated: 2018 Sep 04 Resolved: 2018 Jan 28 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | None |
Affects Version/s: | 3.0.12 |
Fix Version/s: | 4.0.0alpha3, 4.0 (plan) |
Type: | Change Request | Priority: | Trivial |
Reporter: | Rostislav Palivoda | Assignee: | Andris Mednis |
Resolution: | Fixed | Votes: | 0 |
Labels: | logmonitoring | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | patch_ZBXNEXT-4216_for_30.diff patch_ZBXNEXT-4216_for_30_20180122.diff.gz patch_ZBXNEXT-4216_for_30_r76973.diff.gz zabbix3.0.10_logrt_support_copytruncate.patch |
Team: | Team A |
Sprint: | Sprint 15, Sprint 16, Sprint 18, Sprint 19, Sprint 20, Sprint 21, Sprint 22, Sprint 23, Sprint 24, Sprint 25, Sprint 26 |
Story Points: | 30 |
Description |
User wants to monitor a log file that is rotated copy-truncate. |
Comments |
Comment by Kodai Terashima [ 2017 Aug 26 ] |
Copy-truncate is a one optin for rsyslog or logrotate, users can choose "copytruncate" or "reload" behaviour for log rotation (reload is default). According to man page, some log lines are lost while rotation with copytruncate mode.
|
Comment by Andris Mednis [ 2017 Oct 31 ] |
Thanks, Kodai, for comments! Ok, then let's go with logrt[] and 8 parameters. About MD5 - in other words, if MD5 sum of the first 512 bytes (ore less if files are shorter) are the same then it is an indicator that one of them is a copy. |
Comment by Andris Mednis [ 2017 Nov 07 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/DEV-653-3 (for 3.0) |
Comment by Andris Mednis [ 2017 Nov 27 ] |
(1) No translation string changes. |
Comment by Andris Mednis [ 2017 Dec 11 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBXNEXT-4216-2 (for 4.0) |
Comment by Vladislavs Sokurenko [ 2018 Jan 17 ] |
Successfully tested |
Comment by Andris Mednis [ 2018 Jan 18 ] |
Available in versions:
|
Comment by Andris Mednis [ 2018 Jan 18 ] |
Documented in martins-v Thanks, reviewed, with some minor rewording/grammar fixes in 'what's new' and the notes. CLOSED |
Comment by Andris Mednis [ 2018 Jan 22 ] |
Available in versions:
|