A command-line C++ program which can be used for filtering MPL logs (present on ADVA FSP 3000/FSP 150 networking solutions).
- AND/OR concatenation mode
- 'Equals', 'contains', 'greater' and 'less' conditions (with different modifiers)
- Support for filtering strings, integers and POSIX time
- Grouping condition modes
- Error handling
- Sorting algorithms
- Faster I/O (reading the file)
Simply run the executable using input arguments in a following order:
usage: mplLogAnalyzer [ initial arguments ] [ key ] [ condition ] ...
Avaliable initial arguments:
-i Input file
-and Set condition concatenation mode to AND
-or Set condition concatenation mode to OR
-h Display help message
Key-condition arguments:
-k Key definition
-(n)e Condition: (not)equals
-(n)c Contition: (not)contains
-(n)g Condition: (not)greater
-(n)l Condition: (not)less
-(n)ge Condition: (not)greater or equal
-(n)le Condition: (not)less or equal
Available keys:
time, source, type, thd, id, component, message, jsonStr
Example:
./mplLogAnalyzer -i mpl.log -and -k source -e mpl -k message -nc fp-1
- Boost 1.71