Simple spring-batch based application to parse log file and find IP addresses accessed site with overflowing expected threshold to ban it
Spring Boot, Spring Batch, Spring JDBC, Apache CLI, Lombok, Maven, MySQL, HSQL
- create database schema using script from src/main/resources before running application
- configure database connection settings in src/main/resources/application.properties
- build jar file with 'mvn clean package'
- access.log file should have the same format as in src/test/resources/test-access.log
- run jar using: java -jar "parser.jar" --accesslog=<full_path>/access.log --startDate=2017-01-01.00:00:00 --duration=daily --threshold=500 java -jar "parser.jar" --accesslog=<full_path>/access.log --startDate=2017-01-01.13:30:00 --duration=hourly --threshold=100