Parser is a tool that loads request log files into database and find remote addresses that are making too many requests
- Create schema
- Download parser.jar
- Extract files from parser.jar
- Open
application.properties
and set database url and credentials - Compress extracted files to parser.zip
- Change file extension from .zip to .jar
The parser accepts the following arguments:
- accesslog: The access log file path (optional)
- startDate: The start date of the analysis (required)
- duration: The time span to be considered (required)
- threshold: The requests limit of a remote address (required)
Run from command line:
java -cp "parser.jar" com.ef.Parser --accesslog=/path/to/file --startDate=2017-01-01.13:00:00 --duration=hourly --threshold=100
- JCommander - Parse command line arguments
- Connector/J - JDBC driver for MySQL
- Sql2o - Micro-ORM
This project is licensed under the MIT License - see the LICENSE.md file for details