[ZBX-25798] Error When Retrieving SJIS-Encoded Logs with Blank Lines Using the Log Key Created: 2024 Dec 25  Updated: 2025 Mar 18  Resolved: 2025 Mar 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 6.0.37, 7.0.7, 7.2.1
Fix Version/s: 6.0.40rc1, 7.0.11rc1, 7.2.5rc1, 7.4.0beta1

Type: Problem report Priority: Major
Reporter: 中山貴弘 Assignee: Michael Veksler
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 9h
Original Estimate: Not Specified
Environment:

zabbixserver:7.0.5
zabbixagent2:7.0.5


Attachments: PNG File screenshot-1.png     Text File sjis_example.txt     Text File sjis_example.txt.txt    
Issue Links:
Causes
caused by ZBX-23002 Zabbix agents do not fail when user c... Closed
Duplicate
Team: Team B
Sprint: Prev.Sprint, S25-W6/7, S25-W8/9, S25-W10/11
Story Points: 2

 Description   

When the log file encoded in SJIS is retrieved using the log key with the encoding parameter set to SHIFT_JIS, the following error occurs if a blank line (empty line) is written to the monitored log file, and no further logs are retrieved thereafter.

Failed to convert from encoding SHIFT_JIS to utf8. Error: [0x00000057]



 Comments   
Comment by Kim Jongkwon [ 2025 Feb 07 ]

I tested on a Japanese Windows system with a SHIFT_JIS log containing blank lines and confirmed the issue.

  • Both 7.0.8 Agent and Agent 2 have the same problem.

A fix or investigation is needed for 7.0.
(FYI) For now, use 6.0.37 agents to avoid the issue

Comment by Michael Veksler [ 2025 Mar 14 ]

Available in:

Generated at Wed Jul 30 19:35:36 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.