Metricbeat 신규 모듈 추가(작동 안함)

2025. 1. 31. 22:56EFK

신규 모듈 설정 추가: {설치위치}/module.d

# test.yml
metricbeat.modules:
- module: test
  paths:
    - "{읽을 json 파일}"
  json.keys_under_root: true
  json.add_error_key: true
  # tags로 kibana에서 data view가 조회됨
  tags: ["test_module"]
  processors:
    - add_fields:
        fields:
          type: test_field

설정 확인

# 환경설정 확인
metricbeat test config

# elasticsearch 연결 확인
metricbeat test output

# 로그 화인
./logs/*

서비스 재기동

 

'EFK' 카테고리의 다른 글

Metricbeat logging 변경 하기  (0) 2025.02.01
Fluentd 설치  (0) 2025.01.31
Kibana Discover에서 *로 검색하기  (0) 2025.01.31
Filebeat 설치  (0) 2025.01.31
Metricbeat process.cpu.pct와 system.process.cpu.total.pct 비교  (0) 2025.01.31