Centos6.5部署Rsyslog+LogAnalyzer中文乱码解决

时间:2023-03-09 03:33:42
Centos6.5部署Rsyslog+LogAnalyzer中文乱码解决

中文乱码

Centos6.5部署Rsyslog+LogAnalyzer中文乱码解决

[root@log include]# pwd      

/zhang/app/loganalyzer-3.6./src/include

[root@log include]# vim functions_common.php

配置loganalyzer支持中文

function GetStringWithHTMLCodes($myStr)

{

        global $content;

        // Replace all special characters with valid html representations

        return htmlentities($myStr, ENT_NOQUOTES, $content['HeaderDefaultEncoding']); "UTF-8");

}

重启web

[root@log include]# /etc/init.d/httpd restart

Stopping httpd:                                            [  OK  ]

Starting httpd: httpd: apr_sockaddr_info_get() failed for log

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

                                                           [  OK  ]

设置管理中心

Centos6.5部署Rsyslog+LogAnalyzer中文乱码解决

Centos6.5部署Rsyslog+LogAnalyzer中文乱码解决