The HTTP Status processor can be used to filter out logs that contain a status code between a minimum and a maximum status code.
Metrics | Logs | Traces |
---|---|---|
✓ |
Parameter | Type | Default | Description |
---|---|---|---|
minimum | enum |
100 |
Minimum Status to match. Log entries with lower status codes will be filtered. |
maximum | enum |
599 |
Maximum Status to match. Log entries with higher status codes will be filtered. |
Valid Minimum Status Codes:
Valid Maximum Status Codes:
Filter out all 1xx status codes and 2xx status codes.
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
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