消息的格式如下:[19.09.17, 19:54:48] Marc: If the mean is not in the thousands, there's the problem[19.09.17, 19:54:59] Joe: > mean(aging$Population)Is what I get as solution
我能够将其拆分为日期、时间、发件人和消息,但只适用于一行代码,方法是先逐行读取文本文件,然后在不同的分隔符上拆分这些行。
我正在尝试使用logstash将整个文本文件作为消息提供给ElasticSearch。我正在尝试使用多行编解码器,但是我不知道我必须使用什么模式。((.|\n)*)此正则表达式匹配所有文本,但这不适用于logstash。|\n)*)" what => "next" }我应该使用什么模式来匹配文本文件的所有