https://www.ibm.com/developerworks/cn/opensource/os-cn-elk/index.html
集中式日志系统 ELK 搭建
$ ./bin/elasticsearch –d
wget https://artifacts.elastic.co/downloads/logstash/logstash-5.2.2.tar.gz
wget https://artifacts.elastic.co/downloads/kibana/kibana-5.2.2-linux-x86_64.tar.gz
$ cd /etc/pki/tls/
$ sudo openssl req -config /etc/pki/tls/openssl.cnf -x509 -days 3650 -batch -nodes -newkey rsa:2048 -keyout private/logstash-forwarder.key -out certs/logstash-forwarder.crt
$ ./logstash --path.settings /kingdee/ELK/logstash/config/ -f /kingdee/ELK/logstash/simple.conf --config.test_and_exit
Sending Logstash’s logs to /kingdee/ELK/logstash/logs which is now configured via log4j2.properties
Configuration OK
[2019-01-29T19:35:59,391][INFO ][logstash.runner ] Using config.test_and_exit mode. Config Validation Result: OK. Exiting Logstash