Joomla Error Log / General Joomla Logs

Sean W's Avatar

Sean W

15 Mar, 2018 04:56 PM

Hello,

Thanks for making such a useful app, I recently needed to aggregate and parse some Joomla error logs & developed a regex to do just that. The code is in (github)[https://gist.github.com/cybersholt/ba036fd5f2410b5a11ea4da8b315004f] or posted here:

"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"
        }
    }
}

Hopefully it helps someone else out there if it does drop me a line via github

  1. Support Staff 1 Posted by potsky on 17 Mar, 2018 04:32 PM

    potsky's Avatar

    Thank you, I have added this in the knowledge base !

    http://support.pimpmylog.com/kb/softwares/joomla

  2. potsky closed this discussion on 17 Mar, 2018 04:32 PM.

  3. Sean re-opened this discussion on 17 Mar, 2018 07:29 PM

  4. 2 Posted by Sean on 17 Mar, 2018 07:29 PM

    Sean's Avatar

    Thanks Potsky do you mind updating it to whats on github, I found that the
    1st bit there :

    "Joomla Error Log": {

    needs to be without spaces otherwise assigning it to a user doesn't work
    right & thanks again for the awesome software, hopefully I can find another
    way to contribute to it.

    Best,
    Sean

  5. Support Staff 3 Posted by potsky on 20 Mar, 2018 07:42 PM

    potsky's Avatar

    done ;-)

  6. potsky closed this discussion on 20 Mar, 2018 07:42 PM.

  7. Sean re-opened this discussion on 20 Mar, 2018 08:35 PM

  8. 4 Posted by Sean on 20 Mar, 2018 08:35 PM

    Sean's Avatar

    Thanks!

    Have a good one,
    Sean

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

29 Nov, 2018 07:29 PM
11 Nov, 2018 07:20 AM
31 Oct, 2018 08:09 AM
28 Oct, 2018 05:43 PM
23 Oct, 2018 02:53 PM