我正在寻找如何parsingIIS日志文件的示例。 我刚刚开始,而不是search网站,我想个人build议如何示例网站,示例代码或一本好书,开始了这个学习的path。
使用LogParser可能更容易吗?
当我没有可用的logparser时,我已经运行了Select-String,就像http://mohundro.com/blog/2006/11/06/find-in-files-with-powershell/中的例子-String默认使用正则expression式,所以它非常强大。
Get-ChildItem -Recurse -Include *.* | Select-String "text to search for"
我还使用PowerShell的Webpipe理模块为网站find正确的日志目录。