简体   繁体   中英

Log parser solutions python/perl vs Java

I know perl and python is tested solution for this kind of log parsing and data mining -

Anybody have experience dealing with syslog parsing with Java ?

I have to create a Java demon anyway to load the parsed output to DB .. So I was thinking why not going all the way -

python might be useful when I will be running it on different environment.

I translated some Java GC log parser/analyzer from Perl to Java. In Java the code looked like more lines and the code obviously more verbose but the execution was at least 5 times faster.

I recently started writing python scripts, but recently i wrote a java gc log parser to print the timestamp when a gc happened and counts etc, and i found Python real easy in writing it. What kind of fields are you interested while parsing the syslogs? I think if you know what you are looking for in the logs(patterns etc) then it becomes easy to write a script which would do that for you.

Ankit.

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