kibana使用经验

1,427 阅读1分钟

kibana&nginx

  • 我们的kibana需要被nginx代理一下。涉及到如下配置项
kibana配置文件中需要配置这个东西
# Enables you to specify a path to mount Kibana at if you are running behind a proxy.
# Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath
# from requests it receives, and to prevent a deprecation warning at startup.
# This setting cannot end in a slash.
server.basePath: "/my-kibana"


nginx配置中进行如下配置
location /my-kibana/ {
    proxy_pass http://172.20.13.44:5601/my-kibana/;
}

kibana汉化

kibana.yml中配置i18n.locale: "zh-CN"这个需要重启kibana才能生效

在v7.6中汉化有些地方是有问题的例如:

public class StringConvert {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String s1 = "娣诲姞";
        System.out.println(new String(s1.getBytes("gbk")));
        // 输出结果为添加
    }
}

翻译其实对应有一个json文件 在 kibana-7.6.1-linux-x86_64/x-pack/plugins/translations/translations/zh-CN.json 个别页面上出现的乱码,例如"娣诲姞", 这种词在 zh-CN.json中可以找到,把他改对即可。

kibana如何把logo换成自己公司的元素

之前写好的一篇文章