graylog2收集应用日志 怎样处理多行日志

如何通过shell命令将日志文件中的多行内容显示为一行?_百度知道
如何通过shell命令将日志文件中的多行内容显示为一行?
2 09;; phase at time &24&#47:59;12&#47:
09;9072&quot.SQL3500W
The utility is beginning the &LOAD&quot:
09; phase at time &12/12/24&#47:51;2012 09:34;BUILD&quot.SQL3515W
The utility has finished the &2.SQL3519W
Begin Load Consistency Point.12.SQL3213I
The indexing mode is &quot.000&quot.SQL3520W
Load Consistency PBUILD&quot:41:17; phase at time & SQL3515W
The utility has finished the &BUILD&12/;24/24/2012 09./BUILD&quot.Number of rows read
= 550000Number of rows skipped
= 0Number of rows loaded
= 550000Number of rows rejected
= 0Number of rows deleted
= 0Number of rows committed
= 55000009:41;:SQL3515W
The utility has finished the & phase at time &LOAD&quot.445957& rows were read from
phase at time &quot.&#47:
&quot:07;24/ phase at time &quot比如日志文件内容如下:59; SQL3500W
The utility is beginning the &quot:07.如何通过shell命令统计为. Input record count = &quot:SQL3110N
The utility has completed processing:50;INCREMENTAL&:34:34.SQL3515W
The utility has finished the &24&#47:50
提问者采纳
}&--posix&&/SQL/{N;日志文件&nbsp。如果真的不是一行可试试下面语句;&SQL&sed&&amp。没想出特好的方法;(SQL|Number)&'|&utility/&&nbsp。可供参考;/The&nbsp,一般应该是此类日志内容应该是一行的;$0}'&{print&s/\n//g}&BEGIN{RS=&quot。awk&nbsp同楼上意见;/[0-9]{2}\/[0-9]{2}\/[0-9]{4}/&nbsp
提问者评价
来自团队:
其他类似问题
为您推荐:
日志文件的相关知识
其他1条回答
般日志这种都应该是一行的。然后在看一下。并且全屏。你把终端屏幕缩小。只不过当时屏幕宽度放不下导致的。这个应该不是断开的
确实是 断开的
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁Graylog2 是一个用来将系统日志syslog保存到MongoDB中的工具。 包括一个用Java编写的服务器,可接收来自TCP和UDP的syslog信息,Web接口使用Ruby编写,基于 Rails 框架,可用来查看日志信息。
Graylog v1.0-rc.3 发布,此版本相比 RC2 改进内容如下:
修复与 MongoDB 2.2 版本的兼容性
修复进行缓冲处理的性能回退问题
修复 max_size_per_index 配置选项值的数据类型问题
修复 indexer 错误界面
此版本现已提供。更多内容请看。
Graylog2 是一个用来将系统日志syslog保存到MongoDB中的工具。 包括一个用Java编写的服务器,可接收来自TCP和UDP的syslog信息,Web接口使用Ruby编写,基于 Rails 框架,可用来查看日志信息。
Copyright &
All Rights Reserved &&&&&&

我要回帖

更多关于 graylog2 的文章

 

随机推荐