Skip to main content

Format file for lnav – GNU Parallel logs (joblog)

{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "gnuparallel_log": {
        "description": "Format file for log files produced by GNU Parallel (--joblog)",
        "regex": {
            "std": {
                "pattern": "(?<Seq>\\d*)\\t(?<Host>.*)\\t(?<Starttime>.*)\\t(?<Runtime>.*)\\t(?<Send>.*)\\t(?<Receive>.*)\\t(?<Exitval>.*)\\t(?<Signal>.*)\\t(?<Command>.*)"
            }
        },
        "timestamp-field": "Starttime",
        "timestamp-format": ["%s"],
        "value": {
            "Command": {
                "kind": "string"
            },
            "Exitval": {
                "kind": "integer"
            },
            "Host": {
                "kind": "string"
            },
            "Receive": {
                "kind": "integer"
            },
            "Runtime": {
                "kind": "float"
            },
            "Send": {
                "kind": "integer"
            },
            "Seq": {
                "kind": "integer"
            },
            "Signal": {
                "kind": "integer"
            },
            "Starttime": {
                "kind": "float"
            }
        },
        "sample": [
            {
                "line": "1\t:\t1712915281.065\t10.392\t0\t0\t0\t0\twget example.com; sleep 10"
            }
        ]
    }
}