[ZBX-13253] Log file monitoring starts from byte 0, the first log line can not be read with skip mode Created: 2017 Dec 25  Updated: 2024 Apr 10  Resolved: 2018 Jan 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 3.0.13
Fix Version/s: 3.0.15rc1, 3.4.6rc1, 4.0.0alpha2, 4.0 (plan)

Type: Incident report Priority: Major
Reporter: Kim Jongkwon Assignee: Andris Mednis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File history.png    
Issue Links:
Causes
caused by ZBX-6731 Log files are slow processed by Agent... Closed
Duplicate
Team: Team A
Team: Team A
Sprint: Sprint 23, Sprint 24
Story Points: 1

 Description   

Steps to reproduce:
1. Create a 0 byte log file

# touch tester.log; chmod 777 tester.log;
# ls -l
-rwxrwxrwx   1 root   root        0 Dec 25 03:05 tester.log

2. Create a item

Key :log[/var/log/tester.log,,,,skip]	
Update interval (in sec) : 1s

3. Add echo "1" and "2".

# echo "1" >> tester.log
-rwxrwxrwx  1 root   root        2 Dec 25 03:35 tester.log
# echo "2" >> tester.log
-rwxrwxrwx  1 root   root        4 Dec 25 03:40 tester.log

First "1" log was skipped, Only the second "2" data is read.



 Comments   
Comment by Andris Mednis [ 2017 Dec 27 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-13253 (for 3.0)

Comment by Vladislavs Sokurenko [ 2018 Jan 02 ]

Successfully tested

Comment by Andris Mednis [ 2018 Jan 02 ]

Available in versions:

  • pre-3.0.15rc1 r76472
  • pre-3.4.6rc1 r76473
  • pre-4.0.0alpha2 (trunk) r76475
Comment by Andris Mednis [ 2018 Jan 02 ]

No documentation change required.

Generated at Fri Apr 19 01:11:36 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.