ModSecurity-log-utilities
ModSecurity-log-utilities copied to clipboard
Set of CLI tools to transform ModSecurity logs into a meaningful information, given a context.
Fixes #5 Fixes #7 Fixes #9
Ubuntu 20.04 installs python3 by default. When executing modsec-log-parser.py, error is raised: ``` File "./modsec-log-parser.py", line 50 for xx in summary.split(","): ^ TabError: inconsistent use of tabs and spaces in...
fix 2 typos
Hi Folks, Am I missing anything? `python3 modsec-log-parser.py --delim ';' --summary="client,matchMessage,file,line,msg,data,hostname,uri" /var/log/nginx/ixxx/error.log File "modsec-log-parser.py", line 50 for xx in summary.split(","): ^ TabError: inconsistent use of tabs and spaces in indentation...
Try to fix Issue #5
Python Version: ``` python3 -V Python 3.8.5 ``` ``` [user@localhost] python3 modsec-log-parser.py error_log ``` ``` (['error_log'], None) Traceback (most recent call last): File "./modsec-log-parser.py", line 64, in main() File "./modsec-log-parser.py",...
Fix for https://github.com/SpiderLabs/ModSecurity-log-utilities/issues/3
Hello, we encountered a problem when parsing nginx error logs. It seems some parts of the log entries are not parsed correctly and always output `None`, e.g.: ``` ./modsec-log-parser.py --delim...