获得Apache日志以csv文件 [英] Get apache logs as csv file
本文介绍了获得Apache日志以csv文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法来保存所有Apache日志为CSV文件?
access.log-> access_log.csv
error.log-> error_log.csv
解决方案
您可以定义的自定义日志格式使Apache日志直接进入一个逗号分隔的格式。
您可能有这样摆弄了一会儿,找到正确的方法。例如,你可能会想使用或
作为字段分隔符的领域内prevent逗号破坏您的CSV值。
Is there a way to save all apache logs as CSV file?
access.log->access_log.csv
error.log->error_log.csv
解决方案
You can define a custom log format to make Apache log directly into a comma-separated format.
You may have to fiddle with this for a while to find the right way. For example, you will probably want to use "
or '
as field delimiters to prevent commas inside the field values from breaking your CSV.
这篇关于获得Apache日志以csv文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文