Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pimp My Log - PML - Joomla Log Parse Regex
"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