github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/scripts/lnav_cozy_log.json (about)

     1  {
     2    "cozy_log": {
     3      "title": "Cozy-stack",
     4      "url":
     5        "https://github.com/cozy/cozy-stack/blob/master/scripts/lnav_cozy_log.json",
     6      "regex": {
     7        "std": {
     8          "pattern":
     9            "^time=\"(?<time>[\\dTZ:+-]+)\" level=(?<level>\\w+) msg=\"(?<message>.*)\" (domain=\"?(?<domain>[\\w:.]+)\"? ?)?(nspace=(?<nspace>[\\w-]+))?"
    10        },
    11        "http": {
    12          "pattern":
    13            "^time=(?<time>[\\dTZ:+-]+)\\s+status=(?<status>\\d+)\\s+method=(?<method>\\w+)\\s+host=(?<domain>\\w+)\\s+uri=(?<uri>\\w+)"
    14        }
    15      },
    16      "timestamp-field": "time",
    17      "sample": [
    18        {
    19          "line":
    20            "time=\"2018-04-18T14:26:12+02:00\" level=debug msg=\"Start worker sendmail/0\" nspace=jobs"
    21        },
    22        {
    23          "line":
    24            "time=\"2018-04-18T14:26:23+02:00\" level=debug msg=\"request: GET alice-test-cozy.localhost-8081%2Fio-cozy-shared/_local/sharing-be7813ea5927dc06a5b044ca47010ffe-1 \" domain=\"alice.test.cozy.localhost:8081\""
    25        }
    26      ],
    27      "value": {
    28        "time": {
    29          "kind": "string",
    30          "identifier": true
    31        },
    32        "level": {
    33          "kind": "string",
    34          "identifier": true
    35        },
    36        "message": {
    37          "kind": "string"
    38        },
    39        "critical": {
    40          "kind": "string",
    41          "identifier": true
    42        },
    43        "nspace": {
    44          "kind": "string",
    45          "identifier": true
    46        },
    47        "domain": {
    48          "kind": "string",
    49          "identifier": true
    50        },
    51        "status": {
    52          "kind": "string",
    53          "identifier": true
    54        },
    55        "method": {
    56          "kind": "integer",
    57          "identifier": true
    58        },
    59        "uri": {
    60          "kind": "string",
    61          "identifier": true
    62        }
    63      }
    64    }
    65  }