syslog-ng

DooMRunneR's Avatar

DooMRunneR

14 Jun, 2018 08:06 AM

Hello,

i tried to include the syslog-ng profile from: http://support.pimpmylog.com/kb/softwares/syslog-ng and edited it a bit to look like the example form http://pimpmylog.com/documentation/configuration.html (CONFIGURATION_DIR)

Was there a change in configuration? My syslog.json from the config.user.d dir wont get loaded while the apache example does.

Kind Regards

  1. 1 Posted by DooMRunneR on 14 Jun, 2018 08:08 AM

    DooMRunneR's Avatar

    My Syslog looks like this:

    {
        "syslog1" : {
            "display"   : "Syslog",
            "path"      : "\/usr\/local\/syslog-ng\/syslog.log",
            "refresh"   : 5,
            "max"       : 10,
            "export"    : true,
            "notify"    : false,
            "format"    : {
                "export_title" : "SysLog",
                "regex"        : "|(.*?) ([0-9]{1,2}) ([0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2}) ([a-zA-Z0-9_\-\.]{1,256}) ([A-Za-z0-9_\-\/\.]{1,32})\[(.*?)\]:(.*)|",
                "match"        : {
                    "Date"     : 3,
                    "Source"   : 4,
                    "Tag_ID"   : 5,
                    "PD"       : 6,
                    "Message"  : 7
                },
                "types" : {
                    "Date"     : "date:H:i:s",
                    "Source"   : "txt",
                    "Tag_ID"   : "txt",
                    "PID"      : "numeral",
                    "Message"  : "txt"
                },
            }
        }
    }
    

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