Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tyrcho/log4jdbcparser
Analyses log files generated by log4jdbc
https://github.com/tyrcho/log4jdbcparser
Last synced: 6 days ago
JSON representation
Analyses log files generated by log4jdbc
- Host: GitHub
- URL: https://github.com/tyrcho/log4jdbcparser
- Owner: tyrcho
- Created: 2015-01-20T15:26:10.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-25T09:44:44.000Z (about 9 years ago)
- Last Synced: 2023-03-12T05:23:01.935Z (over 1 year ago)
- Language: Scala
- Homepage: https://code.google.com/p/log4jdbc-log4j2/
- Size: 246 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Log4jdbcParser
Analyses log files generated by [log4jdbc](https://code.google.com/p/log4jdbc-log4j2).
It will count all the select, insert, delete, update statements ([sample result](sample.txt)):
* total time spent seen from JDBC driver
* total requests (including bactching statements)
* top 10 single requests with more time spent
* top 10 requests with more time spent (grouped with same exact parameters)
* top 10 requests with more time spent (grouped with different parameters)# Usage
Configure your JDBC driver and logs as described on the [log4jdbc](https://code.google.com/p/log4jdbc-log4j2) doc.
Run your application and get a log file.
Download [LogParser.exe](https://github.com/tyrcho/Log4jdbcParser/releases/latest)
Run it from a cmd line :
```
Usage: logparser [options] [input_file] [output_file]-c | --codec
java Codec for input file, UTF-8 (default) and ISO-8859-1 are supported
-t | --top
top SQL statements to keep in output
Example: LogParser -c ISO-8859-1 logs\stdout.log out.txt
```It will create the out.txt file.