Last active
March 15, 2018 17:07
-
-
Save cybersholt/ba036fd5f2410b5a11ea4da8b315004f to your computer and use it in GitHub Desktop.
Pimp My Log - PML - Joomla Log Parse Regex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"joomla1": { | |
"display": "Joomla Error Log", | |
"path": "/var/www/sites/REMOVED/log/error.php", | |
"refresh": 5, | |
"max": 10, | |
"notify": true, | |
"format": { | |
"type": "Joomla", | |
"regex": "|^((\\d{4})-(\\d{2})-(\\d{2})T(\\d{2})\\:(\\d{2})\\:(\\d{2})[+-](\\d{2})\\:(\\d{2}))\\t(.*?)\\s(.*?)\\t(.*?)\\t(.*?)[^\\r\\n]*$|U", | |
"export_title": "Error", | |
"match": { | |
"Date": [ | |
1 | |
], | |
"Priority": 10, | |
"IP Address": [ | |
11 | |
], | |
"Category": 12, | |
"Message": 13 | |
}, | |
"types": { | |
"Date": "date:H:i:s", | |
"Priority": "badge:severity", | |
"IP Address": "ip:geo", | |
"Category": "txt", | |
"Message": "txt" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment