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

中文乱码

 

[root@log include]# pwd      

/zhang/app/loganalyzer-3.6.5/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  ]

设置管理中心

猜你喜欢

转载自www.cnblogs.com/daynote/p/9001808.html