Log Parser for linux

Sanghyun Lee picture Sanghyun Lee · Jun 16, 2011 · Viewed 13.6k times · Source

Log Parser is great tool for parsing log files. I can parse not just IIS log files but also custom log files with it.

For example I can use SQL syntax to parse logs:

C:\>LogParser "SELECT TimeGenerated, SourceName, 
EventCategoryName, Message INTO report.txt FROM Security WHERE 
EventID = 528 AND SID LIKE '%TESTUSER%'" -resolveSIDs:ON

Is there any tool like that for linux?

Thanks.

Answer

user853433 picture user853433 · Jul 20, 2011

lnav supports SQL queries and supports most of the common Linux log formats. Look at the project's website and documentation page for more details and screenshots.