#860·Tars

[BUG]Windows平台tarsnode拉取日志有问题

Author: JanuarYJLCreated Jul 29, 2021Updated Jun 9, 2022
Labelsbug

What version of TARS and what language are you using? v2.4.14

What operating system (Linux, Windows, ...) and version? [e.g. CentOS 7.8] Win7

What runtime/compiler are you using? [e.g. JDK version or version of gcc] VS2019

Describe the bug Logview本地日志查询无法查看Windows节点程序的日志,原因是在Windows平台的tarsnode中会将tail/iconv/sed转换成使用busybox的命令(参见NodeImp.cpp文件中的NodeImp::getLogData函数),即:busybox.exe tail -5000 c:\tars-install\tars\app_log\tars\tarsAdminRegistry\tars.tarsAdminRegistry1.log | busybox.exe tail -100 | busybox.exe iconv -c -f UTF-8 -t UTF-8 | busybox.exe sed 's/[\cA-\cZ]//g',但是busybox并不支持iconv且对sed的参数支持也有问题,如图后面截图所示。

Screenshots issue2

issue1

Additional context 是否考虑将iconv等busybox不支持的命令执行文件直接打包到Windows平台的框架中?