代替elk的命令 elk 官网 grep
1.授权成功:corpId:wx6055e3db17b8bb4c
cd /mnt/data/logs;grep -anr -C 100 "授权成功:corpId:wx6055e3db17b8bb4c" wxqyh_1808{6,7,8,9}/log4j.log > log.txt
2.cd /mnt/data/logs;grep -anr -C 10000 "864fe9974979b36db677820f8537c3a4d4370cad" wxqyh_1808{6,7,8,9}/log4j.log > log.txt
3.elk官网
https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-template.html elk
用一个例子来演示会更加清晰