# Filter HTTP Status

### Description

The HTTP Status processor can be used to filter out logs that contain a status code between a minimum and a maximum status code.

### Supported Types

| Metrics | Logs | Traces |
| ------- | ---- | ------ |
|         | ✓    |        |

### Configuration Table

<table><thead><tr><th width="108.66796875">Parameter</th><th width="90.453125">Type</th><th width="80.375">Default</th><th>Description</th></tr></thead><tbody><tr><td>minimum</td><td><code>enum</code></td><td><code>100</code></td><td>Minimum Status to match. Log entries with lower status codes will be filtered.</td></tr><tr><td>maximum</td><td><code>enum</code></td><td><code>599</code></td><td>Maximum Status to match. Log entries with higher status codes will be filtered.</td></tr></tbody></table>

Valid Minimum Status Codes:

* 100
* 200
* 300
* 400
* 500

Valid Maximum Status Codes:

* 199
* 299
* 399
* 499
* 599

### Example Configuration

Filter out all 1xx status codes and 2xx status codes.

**Web Interface**

<figure><img src="https://1405008107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgmiOMzBfoNFwmKJFHMcJ%2Fuploads%2Fgit-blob-fa1d7d3805ac3b71449e4f0a2fbe65cf173b16ad%2Fintegrations-processors-filter-http-status-image-1.png?alt=media" alt="Bindplane docs - Filter HTTP Status - image 1"><figcaption></figcaption></figure>

**Standalone Processor**

```yaml
apiVersion: bindplane.observiq.com/v1
kind: Processor
metadata:
  id: http-status
  name: http-status
spec:
  type: filter_http_status
  parameters:
    - name: maximum
      value: 599
    - name: minimum
      value: 300
```

**Configuration with Embedded Processor**

```yaml
apiVersion: bindplane.observiq.com/v1
kind: Configuration
metadata:
  id: http-status
  name: http-status
  labels:
    platform: linux
spec:
  sources:
    - type: journald
      parameters:
        - name: units
          value: []
        - name: directory
          value: ''
        - name: priority
          value: info
        - name: start_at
          value: end
      processors:
        - type: filter_http_status
          parameters:
            - name: maximum
              value: 599
            - name: minimum
              value: 300
  selector:
    matchLabels:
      configuration: http-status
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bindplane.com/integrations/processors/filter-http-status.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
