Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aselapathirage/loganalyzer-logfiltertool
Filter out log records based on log levels from the WSO2 products' log files
https://github.com/aselapathirage/loganalyzer-logfiltertool
ballerina
Last synced: 8 days ago
JSON representation
Filter out log records based on log levels from the WSO2 products' log files
- Host: GitHub
- URL: https://github.com/aselapathirage/loganalyzer-logfiltertool
- Owner: AselaPathirage
- Created: 2022-12-20T07:49:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-20T15:46:07.000Z (over 1 year ago)
- Last Synced: 2023-08-23T00:16:06.877Z (over 1 year ago)
- Topics: ballerina
- Language: Ballerina
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LogFilterTool
The LogFilterTool is designed to filter log records from a log file based on specified log levels and output the filtered records to a new file.
By default, logs with the **ERROR** level are filtered out, while the other log levels can be passed as arguments as `filters`.
## Arguments
`input` - logfile path
`output` - (Optional) Output folder location
`filters` - (Optional) Log levels divided by commas
## To run the .jar file
```
bal run --input= --output= --filters=
```## To run the .bal file
```
bal run -- --input= --output= --filters=
```## To build
```
bal build
```