Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```