{
  "description": "ClusterParser is the Schema for the cluster-level parsers API",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "ParserSpec defines the desired state of ClusterParser",
      "properties": {
        "decoders": {
          "description": "Decoders are a built-in feature available through the Parsers file, each Parser definition can optionally set one or multiple decoders.\nThere are two type of decoders type: Decode_Field and Decode_Field_As.",
          "items": {
            "properties": {
              "decodeField": {
                "description": "If the content can be decoded in a structured message,\nappend that structure message (keys and values) to the original log message.",
                "type": "string"
              },
              "decodeFieldAs": {
                "description": "Any content decoded (unstructured or structured) will be replaced in the same key/value,\nno extra keys are added.",
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "json": {
          "description": "JSON defines json parser configuration.",
          "properties": {
            "timeFormat": {
              "description": "Time_Format, eg. %Y-%m-%dT%H:%M:%S %z",
              "type": "string"
            },
            "timeKeep": {
              "description": "Time_Keep",
              "type": "boolean"
            },
            "timeKey": {
              "description": "Time_Key",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "logfmt": {
          "description": "Logfmt defines logfmt parser configuration.",
          "type": "object"
        },
        "ltsv": {
          "description": "LTSV defines ltsv parser configuration.",
          "properties": {
            "timeFormat": {
              "description": "Time_Format, eg. %Y-%m-%dT%H:%M:%S %z",
              "type": "string"
            },
            "timeKeep": {
              "description": "Time_Keep",
              "type": "boolean"
            },
            "timeKey": {
              "description": "Time_Key",
              "type": "string"
            },
            "types": {
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "regex": {
          "description": "Regex defines regex parser configuration.",
          "properties": {
            "regex": {
              "type": "string"
            },
            "timeFormat": {
              "description": "Time_Format, eg. %Y-%m-%dT%H:%M:%S %z",
              "type": "string"
            },
            "timeKeep": {
              "description": "Time_Keep",
              "type": "boolean"
            },
            "timeKey": {
              "description": "Time_Key",
              "type": "string"
            },
            "timeOffset": {
              "description": "Time_Offset, eg. +0200",
              "type": "string"
            },
            "types": {
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
