[ZBX-9721] Incorrect log message of Zabbix agent about large log record Created: 2015 Jul 21  Updated: 2017 May 30  Resolved: 2015 Aug 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 2.2.9, 2.4.5
Fix Version/s: 2.0.16rc1, 2.2.11rc1, 2.4.7rc1, 2.5.0

Type: Incident report Priority: Trivial
Reporter: Kodai Terashima Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: agent, logging, logmonitoring
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Zabbix agent log says "Only the first 64 kB will be analyzed." for large log record.

It should be corrected to 256 kB according to documentation.
https://www.zabbix.com/documentation/2.2/manual/config/items/itemtypes/log_items

In src/zabbix_agent/logfiles.c, zbx_read2():

zabbix_log(LOG_LEVEL_WARNING, "Logfile contains a large record: \"%.64s\""
                " (showing only the first 64 characters). Only the first 64 kB"
                " will be analyzed, the rest will be ignored while Zabbix agent"
                " is running.", value);


 Comments   
Comment by Glebs Ivanovskis (Inactive) [ 2015 Jul 23 ]

Fixed for version 2.0 in development branch svn://svn.zabbix.com/branches/dev/ZBX-9721-20 revision 54502.
Fixed for version 2.2 in development branch svn://svn.zabbix.com/branches/dev/ZBX-9721-22 revision 54918.

Comment by Glebs Ivanovskis (Inactive) [ 2015 Aug 13 ]

Please review fix for version 2.2.

wiper reviewed.

Comment by Glebs Ivanovskis (Inactive) [ 2015 Aug 14 ]

Fixed for pre-2.0.16rc1 r54905.
Fixed for pre-2.2.11rc1 r54940.
Fixed for pre-2.4.7rc1 r54941.
Fixed for pre-2.5.0 (trunk) r54942.

Generated at Sat Apr 27 07:15:17 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.