Skip to content

Instantly share code, notes, and snippets.

@kahirul
Last active November 28, 2018 08:02
Show Gist options
  • Save kahirul/9e253fbacd6b6ec48adc430cb56dbfdf to your computer and use it in GitHub Desktop.
Save kahirul/9e253fbacd6b6ec48adc430cb56dbfdf to your computer and use it in GitHub Desktop.

Revisions

  1. kahirul renamed this gist Nov 28, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. kahirul created this gist Nov 28, 2018.
    18 changes: 18 additions & 0 deletions parser.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    {
    formats: [
    {
    format: "$date$ $time$ $level$ ip-$ip$ --- \\[$thread$\\] $logger$ : $timestamp$ $method$ $url$ STATUS:$status$",
    halt: true
    },
    {
    format: "$date$ $time$ $level$ ip-$ip$ --- \\[$thread$\\] $logger$ : $trace$",
    halt: true
    }
    ],
    lineGroupers: [
    {
    start: "^(\\d{4}-\\d{2}-\\d{2})",
    haltWith: "^\\s+\\.{3}\\s+\\d+\\s+more$"
    }
    ]
    }