metricbeat용 api_key 생성
2025. 3. 2. 20:53ㆍk8s/EFK
command 이용
curl -u "{계정}:{비밀번호}" -X POST "http://localhost:9200/_security/api_key" -H "Content-Type: application/json" -d '
{
"name": "metricbeat_key",
"role_descriptors": {
"metricbeat_role": {
"cluster": ["monitor"],
"index": [
{
"names": ["metricbeat-*"],
"privileges": ["read", "write", "create_index"]
}
]
}
}
}'
kibana 이용
# Stack Management > Securities > API Keys > Create API key
# Add metata
{
"name": "metricbeat_key",
"role_descriptors": {
"metricbeat_role": {
"cluster": ["monitor"],
"index": [
{
"names": ["metricbeat-*"],
"privileges": ["read", "write", "create_index"]
}
]
}
}
}
'k8s > EFK' 카테고리의 다른 글
metricbeat "message":"DNS lookup failure \"kibana\": lookup kibana on 10.96.0.10:53: no such host" (0) | 2025.03.02 |
---|---|
kibana에 metricbeat dashboard 업로드 (0) | 2025.03.02 |
metricbeat 설치 (0) | 2025.03.02 |
elasticsearch self monitoring 여부 확인 (0) | 2025.03.02 |
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]; for more information (0) | 2025.03.01 |