---
updatedAt: 2026-08-27T14:27:51.000Z
---

# Get parser by ID

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Log Stream APIs",
    "description": "Log Stream APIs for managing parsers, event builders, and event enrichers. Access is restricted to authorized clients using OAuth2 client credentials and the required service authorities.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.us-west.exabeam.cloud"
    },
    {
      "url": "https://api.us-east.exabeam.cloud"
    },
    {
      "url": "https://api.eu.exabeam.cloud"
    },
    {
      "url": "https://api.sg.exabeam.cloud"
    },
    {
      "url": "https://api.jp.exabeam.cloud"
    },
    {
      "url": "https://api.au.exabeam.cloud"
    },
    {
      "url": "https://api.ca.exabeam.cloud"
    },
    {
      "url": "https://api.ch.exabeam.cloud"
    },
    {
      "url": "https://api.sa.exabeam.cloud"
    },
    {
      "url": "https://api.uk.exabeam.cloud"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-languages": [
      "python",
      "powershell",
      "curl",
      "go",
      "javascript",
      "java",
      "cplusplus",
      "csharp",
      "node",
      "node-simple"
    ]
  },
  "tags": [
    {
      "name": "Log Stream Parsers",
      "description": "Public Parser Management API"
    }
  ],
  "paths": {
    "/log-stream/v1/parsers/{parser-id}": {
      "get": {
        "tags": [
          "Log Stream Parsers"
        ],
        "summary": "Get parser by ID",
        "operationId": "getParser",
        "parameters": [
          {
            "name": "parser-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Parser found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantParser"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden. The caller lacks the required permissions"
          },
          "404": {
            "description": "Parser not found"
          }
        },
        "security": [
          {
            "oAuth2ClientCredentials": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "TenantParser": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique parser identifier"
          },
          "parserType": {
            "type": "string",
            "description": "Parser type — read-only; value is set on creation and cannot be changed",
            "readOnly": true
          },
          "parserName": {
            "type": "string",
            "description": "Human-readable parser name",
            "maxLength": 128,
            "minLength": 0,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "extractionType": {
            "type": "string",
            "description": "Extraction type",
            "enum": [
              "regex",
              "json"
            ]
          },
          "version": {
            "type": "string",
            "description": "Parser version string, e.g. '1.0'",
            "maxLength": 32,
            "minLength": 0
          },
          "vendor": {
            "type": "string",
            "description": "Vendor name",
            "maxLength": 128,
            "minLength": 0
          },
          "vendorMatch": {
            "type": "boolean",
            "description": "Whether to match based on the vendor field in the log"
          },
          "product": {
            "type": "string",
            "description": "Product name",
            "maxLength": 128,
            "minLength": 0
          },
          "timeFormat": {
            "type": "string",
            "description": "Primary time format string",
            "maxLength": 128,
            "minLength": 0
          },
          "timeFormats": {
            "type": "array",
            "description": "Additional time format strings to try (defaults to empty list)",
            "items": {
              "type": "string"
            }
          },
          "conditions": {
            "type": "array",
            "description": "Log match conditions (regex or key-value expressions)",
            "items": {
              "type": "string"
            },
            "maxItems": 2147483647,
            "minItems": 1
          },
          "fields": {
            "type": "array",
            "description": "Field extraction expressions",
            "items": {
              "type": "string"
            }
          },
          "customFields": {
            "type": "array",
            "description": "Custom field definitions (defaults to empty list)",
            "items": {
              "type": "string"
            }
          },
          "dupFields": {
            "type": "array",
            "description": "Fields to deduplicate (defaults to empty list)",
            "items": {
              "type": "string"
            }
          },
          "priority": {
            "type": "integer",
            "format": "int64",
            "description": "Parser priority; lower values run first",
            "minimum": 0
          },
          "eventTypes": {
            "type": "array",
            "description": "Event type classifications",
            "items": {
              "type": "string"
            },
            "maxItems": 2147483647,
            "minItems": 1
          },
          "subject": {
            "type": "string",
            "description": "Subject classification",
            "maxLength": 128,
            "minLength": 0
          },
          "logFileId": {
            "type": "string",
            "description": "Associated example log file ID (optional)",
            "maxLength": 128,
            "minLength": 0
          },
          "state": {
            "type": "string",
            "description": "Parser state",
            "enum": [
              "Completed",
              "Disabled",
              "Draft",
              "Enabled"
            ]
          },
          "stage": {
            "type": "integer",
            "format": "int64",
            "description": "Processing stage index"
          },
          "stateInPipeline": {
            "type": "string",
            "description": "State in the parsing pipeline",
            "enum": [
              "Paused",
              "Resumed",
              "Broken",
              "Active"
            ]
          },
          "pausedTimeStamp": {
            "type": "integer",
            "format": "int64",
            "description": "Unix epoch ms when parser was paused"
          },
          "createdBy": {
            "type": "string",
            "description": "Creator user identifier",
            "readOnly": true
          },
          "createdAt": {
            "type": "integer",
            "format": "int64",
            "description": "Creation timestamp in Unix epoch ms",
            "readOnly": true
          },
          "updatedAt": {
            "type": "integer",
            "format": "int64",
            "description": "Last update timestamp in Unix epoch ms"
          },
          "updatedBy": {
            "type": "string",
            "description": "Last modifier user identifier"
          },
          "productCategory": {
            "type": "string",
            "description": "Product category classification",
            "maxLength": 1024,
            "minLength": 0
          }
        },
        "required": [
          "conditions",
          "eventTypes",
          "fields",
          "parserName",
          "product",
          "state",
          "subject",
          "timeFormat",
          "vendor",
          "version"
        ]
      }
    },
    "securitySchemes": {
      "oAuth2ClientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "auth/v1/token",
            "scopes": {}
          }
        }
      }
    }
  }
}
```