{
    "content": [
        {
            "type": "text",
            "text": "# qslogger(1) (man)\n\n**Summary:** qslogger - another shell command interface to the system log module (syslog).\n\n**Synopsis:** qslogger [-t <tag>] [-f <facility>] [-l <level>] [-x <prefix>] [-r <expression>] [-d <level>]\n[-u <name>] [-p]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -t | — | <tag> | Defines the tag name which shall be used to define the origin of the messages, e.g. 'httpd'. |\n| -f | — | <facility> | Defines the syslog facility. Default is 'daemon'. |\n| -u | — | <name> | Becomes another user, e.g. www-data. |\n| -l | — | <level> | Defines the minimal severity a message must have in order to be forwarded. Default is 'DEBUG' (forwarding everything). |\n| -x | — | <prefix> | Allows you to add a prefix (literal string) to every message. |\n| -r | — | <expression> | Specifies a regular expression which shall be used to determine the severity (syslog level) for each log line. The defau |\n| -d | — | <level> | The default severity if the specified pattern (-r) does not match and the message's serverity can't be determined. Defau |\n\n## Examples\n\n- `ErrorLog \"|/usr/bin/qslogger -t apache -f local7\"`\n\n## See Also\n\n- qsdt(1)\n- qsexec(1)\n- qsfilter2(1)\n- qsgeo(1)\n- qsgrep(1)\n- qshead(1)\n- qslog(1)\n- qspng(1)\n- qsre(1)\n- qsrespeed(1)\n- qsrotate(1)\n- qssign(1)\n- qstail(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTION** (3 lines)\n- **OPTIONS** (1 lines) — 7 subsections\n  - -t <tag> (3 lines)\n  - -f <facility> (2 lines)\n  - -u <name> (2 lines)\n  - -l <level> (3 lines)\n  - -x <prefix> (2 lines)\n  - -r <expression> (7 lines)\n  - -d <level> (5 lines)\n- **EXAMPLE** (3 lines)\n- **SEE ALSO** (3 lines)\n- **AUTHOR** (5 lines)\n\n## Full Content\n\n### NAME\n\nqslogger - another shell command interface to the system log module (syslog).\n\n### SYNOPSIS\n\nqslogger [-t <tag>] [-f <facility>] [-l <level>] [-x <prefix>] [-r <expression>] [-d <level>]\n[-u <name>] [-p]\n\n### DESCRIPTION\n\nUse this utility to forward log messages to the systems syslog facility, e.g., to forward the\nmessages to a remote host. It reads data from stdin.\n\n### OPTIONS\n\n#### -t <tag>\n\nDefines  the  tag  name which shall be used to define the origin of the messages, e.g.\n'httpd'.\n\n#### -f <facility>\n\nDefines the syslog facility. Default is 'daemon'.\n\n#### -u <name>\n\nBecomes another user, e.g. www-data.\n\n#### -l <level>\n\nDefines the minimal severity a message must have in order to be forwarded. Default  is\n'DEBUG' (forwarding everything).\n\n#### -x <prefix>\n\nAllows you to add a prefix (literal string) to every message.\n\n#### -r <expression>\n\nSpecifies  a  regular expression which shall be used to determine the severity (syslog\nlevel) for each log line. The default pattern '^\\[[0-9a-zA-Z :]+\\] \\[([a-z]+)\\] '  can\nbe  used for Apache error log messages but you may configure your own pattern matching\nother log formats. Use brackets to define the pattern enclosing the  severity  string.\nDefault level (if severity can't be determined) is defined by the option '-d' (see be‐\nlow).\n\n#### -d <level>\n\nThe default severity if the specified pattern (-r) does not match  and  the  message's\nserverity can't be determined. Default is 'NOTICE'.\n\n-p     Writes data also to stdout (for piped logging).\n\n### EXAMPLE\n\nErrorLog \"|/usr/bin/qslogger -t apache -f local7\"\n\n### SEE ALSO\n\nqsdt(1),   qsexec(1),  qsfilter2(1),  qsgeo(1),  qsgrep(1),  qshead(1),  qslog(1),  qspng(1),\nqsre(1), qsrespeed(1), qsrotate(1), qssign(1), qstail(1)\n\n### AUTHOR\n\nPascal Buchbinder, http://mod-qos.sourceforge.net/\n\n\n\nmodqos utilities 11.63                       May 2019                                   QSLOGGER(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "qslogger",
        "section": "1",
        "mode": "man",
        "summary": "qslogger - another shell command interface to the system log module (syslog).",
        "synopsis": "qslogger [-t <tag>] [-f <facility>] [-l <level>] [-x <prefix>] [-r <expression>] [-d <level>]\n[-u <name>] [-p]",
        "flags": [
            {
                "flag": "-t",
                "long": null,
                "arg": "<tag>",
                "description": "Defines the tag name which shall be used to define the origin of the messages, e.g. 'httpd'."
            },
            {
                "flag": "-f",
                "long": null,
                "arg": "<facility>",
                "description": "Defines the syslog facility. Default is 'daemon'."
            },
            {
                "flag": "-u",
                "long": null,
                "arg": "<name>",
                "description": "Becomes another user, e.g. www-data."
            },
            {
                "flag": "-l",
                "long": null,
                "arg": "<level>",
                "description": "Defines the minimal severity a message must have in order to be forwarded. Default is 'DEBUG' (forwarding everything)."
            },
            {
                "flag": "-x",
                "long": null,
                "arg": "<prefix>",
                "description": "Allows you to add a prefix (literal string) to every message."
            },
            {
                "flag": "-r",
                "long": null,
                "arg": "<expression>",
                "description": "Specifies a regular expression which shall be used to determine the severity (syslog level) for each log line. The default pattern '^\\[[0-9a-zA-Z :]+\\] \\[([a-z]+)\\] ' can be used for Apache error log messages but you may configure your own pattern matching other log formats. Use brackets to define the pattern enclosing the severity string. Default level (if severity can't be determined) is defined by the option '-d' (see be‐ low)."
            },
            {
                "flag": "-d",
                "long": null,
                "arg": "<level>",
                "description": "The default severity if the specified pattern (-r) does not match and the message's serverity can't be determined. Default is 'NOTICE'. -p Writes data also to stdout (for piped logging)."
            }
        ],
        "examples": [
            "ErrorLog \"|/usr/bin/qslogger -t apache -f local7\""
        ],
        "see_also": [
            {
                "name": "qsdt",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/qsdt/1/json"
            },
            {
                "name": "qsexec",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/qsexec/1/json"
            },
            {
                "name": "qsfilter2",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/qsfilter2/1/json"
            },
            {
                "name": "qsgeo",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/qsgeo/1/json"
            },
            {
                "name": "qsgrep",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/qsgrep/1/json"
            },
            {
                "name": "qshead",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/qshead/1/json"
            },
            {
                "name": "qslog",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/qslog/1/json"
            },
            {
                "name": "qspng",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/qspng/1/json"
            },
            {
                "name": "qsre",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/qsre/1/json"
            },
            {
                "name": "qsrespeed",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/qsrespeed/1/json"
            },
            {
                "name": "qsrotate",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/qsrotate/1/json"
            },
            {
                "name": "qssign",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/qssign/1/json"
            },
            {
                "name": "qstail",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/qstail/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-t <tag>",
                        "lines": 3,
                        "flag": "-t",
                        "arg": "<tag>"
                    },
                    {
                        "name": "-f <facility>",
                        "lines": 2,
                        "flag": "-f",
                        "arg": "<facility>"
                    },
                    {
                        "name": "-u <name>",
                        "lines": 2,
                        "flag": "-u",
                        "arg": "<name>"
                    },
                    {
                        "name": "-l <level>",
                        "lines": 3,
                        "flag": "-l",
                        "arg": "<level>"
                    },
                    {
                        "name": "-x <prefix>",
                        "lines": 2,
                        "flag": "-x",
                        "arg": "<prefix>"
                    },
                    {
                        "name": "-r <expression>",
                        "lines": 7,
                        "flag": "-r",
                        "arg": "<expression>"
                    },
                    {
                        "name": "-d <level>",
                        "lines": 5,
                        "flag": "-d",
                        "arg": "<level>"
                    }
                ]
            },
            {
                "name": "EXAMPLE",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}