Centos6.5 deploys Rsyslog+LogAnalyzer Chinese garbled solution

Chinese garbled

 

[root@log include]# pwd      

/zhang/app/loganalyzer-3.6.5/src/include

[root@log include]# vim functions_common.php

 

Configure loganalyzer to support Chinese

function GetStringWithHTMLCodes($myStr)

{

        global $content;

 

        // Replace all special characters with valid html representations

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

}

 

restart 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  ]

 

Set up the admin center

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325521829&siteId=291194637