es7.x升级log4j版本
下载log4j2.18.0
下载地址: https://dlcdn.apache.org/logging/log4j/2.18.0/apache-log4j-2.18.0-bin.tar.gz
其他版本:https://downloads.apache.org/logging/log4j/
-
查找es安装目录下需要替换的log4j文件
[root@xxx ]
/usr/local/elasticsearch/lib/log4j-api-2.11.1.jar
/usr/local/elasticsearch/lib/log4j-core-2.11.1.jar
/usr/local/elasticsearch/lib/log4j-1.2-api-2.11.1.jar
/usr/local/elasticsearch/modules/x-pack-security/log4j-slf4j-impl-2.11.1.jar
/usr/local/elasticsearch/config/log4j2.properties
-
备份旧文件
[root@xxx ]
[root@xxx ]
[root@xxx ]
[root@xxx ]
[root@xxx ]
-
将2.11.1文件替换为2.18.0
[root@xxx ]
[root@xxx ]
[root@xxx ]
[root@xxx ]
[root@xxx ]
[root@xxx ]
/usr/local/elasticsearch/lib/log4j-api-2.18.0.jar
/usr/local/elasticsearch/lib/log4j-core-2.18.0.jar
/usr/local/elasticsearch/lib/log4j-1.2-api-2.18.0.jar
/usr/local/elasticsearch/modules/x-pack-security/log4j-slf4j-impl-2.18.0.jar
-
重新启动
[root@xxx ]
[root@xxx ]
[esuser@xxx ]
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)