# Validate log samples

**POST** `/v1/grok/parse/batch`

**Operation ID**: `parse`
**Summary**: Validate log samples
Parse slog samples using provided Grok rules and returns the extracted fields and which rule matched.

## Tags
- Grok Parsing
## Request Body

**Content-Type**: `application/json`

**Schema**: `GrokParseBatchRequest`

## Responses

### 200

Log message parsed successfully.

- **Content-Type**: `application/json` / `GrokParseBatchResponse`
### 400

Grok parsing rules are invalid or could not be compiled.

- **Content-Type**: `application/json` / `GrokParseErrors`
### 401

Unauthorized
