Skip to content

Commit 570779d

Browse files
author
Jony Santos
committed
first commit
0 parents  commit 570779d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Spring Shell Log Access Parser Sample
2+
3+
## What is this?
4+
5+
6+
This example shows how to use the Spring Shell tool to parse an access log file. It is also possible to perform queries with totalization of accesses by ip, with a threshold and date period.
7+
8+
9+
## Used Tools
10+
11+
* [SPRING INITIALIZR](https://start.spring.io)
12+
13+
* [Spring Boot](http://projects.spring.io/spring-boot)
14+
15+
* [Spring Shell](https://projects.spring.io/spring-shell)
16+
17+
* [Spring Data JPA](https://projects.spring.io/spring-data-jpa)
18+
19+
* [Maven](https://maven.apache.org)
20+
21+
22+
23+
## Starting...
24+
25+
mvn spring-boot:run
26+
27+
After start, type help to list all commands.
28+
29+
### Commands
30+
31+
clean: clear all data rows on database
32+
count: count data rows on database
33+
load: Load data file. Example: load path-to-log-file
34+
parse: Parse the log file and search data. Example: parse path-to-log-file start-date(in yyyy-MM-dd.HH.mm.ss format) duration(hourly or daily) threshold(greather than 0)
35+
query: Search data from database. Example: query start-date(in yyyy-MM-dd.HH.mm.ss format) duration(hourly or daily) threshold(greather than 0)

0 commit comments

Comments
 (0)