Skip to content

Commit

Permalink
README: update usage and example
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Jun 10, 2023
1 parent d8af83c commit 4410fc3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ CGO_ENABLED=0 go build
Usage of ./ayano:
-absolute
Show absolute time for each item
-analyse
Log analyse mode (no tail following, only show top N at the end, and implies -whole)
-n int
Show top N values (default 10)
-no-netstat
Expand All @@ -23,6 +25,8 @@ Usage of ./ayano:
Parser to use (nginx-json or nginx-combined) (default "nginx-json")
-r int
Refresh interval in seconds (default 5)
-server string
Server IP to filter (nginx-json only)
-threshold string
Threshold size for request (only requests larger than this will be counted) (default "100M")
-whole
Expand All @@ -31,6 +35,8 @@ Usage of ./ayano:
> ./ayano -n 20 -threshold 50M /var/log/nginx/access_json.log
> # Example 2
> ./ayano -n 50 -whole -parser nginx-combined /var/log/nginx/access.log
> # Example 3. This will use fast path to analyse log, and just print result and quit.
> ./ayano -n 100 -analyse /var/log/nginx/access_json.log
```

## Format support
Expand Down

0 comments on commit 4410fc3

Please sign in to comment.