Null (널)
Null 출력 플러그인은 이벤트를 그냥 버려요. 데이터 입력에 제약은 없지만, 파이프라인을 테스트하고 싶을 때 유용해요.
출처: 문서
본문
지원 이벤트 유형:
logsmetrics
Null 출력 플러그인은 이벤트를 버려요.
Configuration parameters (설정 매개변수)
이 플러그인은 다음 매개변수를 지원해요:
| Key | Description | Default |
|---|---|---|
format |
Specify the data format. Supported formats: msgpack, json, json_lines, json_stream. |
msgpack |
json_date_format |
Specify the format of the date. Supported formats: double, epoch, epoch_ms, iso8601 (for example, 2018-05-30T09:39:52.000681Z), and java_sql_timestamp (for example, 2018-05-30 09:39:52.000681). |
double |
json_date_key |
Specify the name of the time key in the output record. To disable the time key, set the value to false. |
date |
workers |
The number of workers to perform flush operations for this output. | 1 |
Get started (시작하기)
플러그인을 커맨드 라인이나 설정 파일을 통해 실행할 수 있어요:
Command line (커맨드 라인)
커맨드 라인에서 다음 옵션으로 Fluent Bit가 이벤트를 버리게 할 수 있어요:
fluent-bit -i cpu -o null
Configuration file (설정 파일)
메인 설정 파일에 다음 내용을 추가하세요:
{% tabs %} {% tab title="fluent-bit.yaml" %}
pipeline:
inputs:
- name: cpu
tag: cpu
outputs:
- name: null
match: '*'
{% endtab %}
{% tab title="fluent-bit.conf" %}
[INPUT]
Name cpu
Tag cpu
[OUTPUT]
Name null
Match *
{% endtab %} {% endtabs %}