简体   繁体   中英

Log file parser - count invocations

My scenario is to find - count of invocations of a specific method which is called on a condition.

Every invocation of the method makes a entry into log file with a combination of static + dynamic content.

So with the help of static text, I need to parse the log file(very massive) and find the count.

Is there any tool available for this ? I know a java program using reader would do the job(as explained here ), but searching for a existing tool / way to do.

Thanks !!

Assuming you need to do this manually, use grep and wc on the command line. (If you need this to run automatically or be invoked from a program you'll have to explain a bit more about the situation)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM