https://www.cnblogs.com/fengjian2016/p/13356125.html
https://www.bboy.app/2020/07/08/%E4%BD%BF%E7%94%A8loki%E8%BF%9B%E8%A1%8C%E6%97%A5%E5%BF%97%E6%94%B6%E9%9B%86/
tomcat多行日志合并
https://www.ngui.cc/51cto/show-602779.html
https://grafana.com/docs/loki/latest/clients/promtail/stages/regex/
[root@tomcat01 promtail]# cat config.yaml## https://www.cnblogs.com/fsckzy/p/13231696.html# Promtail Server Configserver:http_listen_port: 9080grpc_listen_port: 0# Positionspositions:filename: /tmp/positions.yaml# Loki服务器的地址clients:- url: http://192.168.130.155:3100/loki/api/v1/pushscrape_configs:- job_name: xxx-tomcatstatic_configs:- targets:- tomcatlabels:job: xxx-wx-msghost: xxx-tomcat01filename: wx-msg.log__path__: /xxx/wx-msg/wx-msg.logpipeline_stages:- match:selector: '{host="xxx-tomcat01"}'stages:# https://grafana.com/docs/loki/latest/clients/promtail/stages/regex/- regex:expression: '.*'multiline:firstline: '^202'
