低版本logstash连接log4j可以安装插件:
./logstash-plugin install logstash-input-log4j
高版本logstash已不允许直连log4j,需要使用filebeat转发。