본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

플러그인 (Plugins)

원문 보기 위키 갱신

Fluent Bit에 기본으로 번들된 플러그인 외에도 외부 플러그인을 로드할 수 있어요. 공유 객체 파일(.so)로 빌드된 Go 또는 WebAssembly(Wasm) 플러그인을 로드할 때 이 기능을 사용해요.

출처: 문서

본문

Fluent Bit에 기본으로 번들된 플러그인 외에도 외부 플러그인을 로드할 수 있어요. 이 기능은 공유 객체 파일(.so)로 빌드된 Go 또는 WebAssembly(Wasm) 플러그인을 로드할 때 사용해요.

참고: 개별 플러그인의 설정을 구성하려면 YAML 설정 파일의 pipeline 섹션 아래에 중첩된 inputs와 outputs 섹션을 사용하세요.

Inline YAML (인라인 YAML)

YAML 설정 파일의 plugins 섹션에서 외부 플러그인을 지정할 수 있어요. 예시:

plugins:
  - /path/to/out_gstdout.so

service:
  log_level: info

pipeline:
  inputs:
    - name: random

  outputs:
    - name: gstdout
      match: '*'

YAML plugins file included using the plugins_file option

추가로 외부 플러그인을 별도의 YAML 파일에 정의한 뒤, YAML 설정 파일의 service 섹션 아래에 중첩된 plugins_file 키에서 그 파일을 참조할 수도 있어요. 예시:

service:
  log_level: info
  plugins_file: extra_plugins.yaml

pipeline:
  inputs:
    - name: random

  outputs:
    - name: gstdout
      match: '*'

이 구성에서 extra_plugins.yaml 파일은 다음과 같은 플러그인 섹션을 담을 수 있어요:

plugins:
  - /other/path/to/out_gstdout.so

더 알아보기 (Learn more)