Kibana Logstash monitoringの画面表示について
以下の設定を行いLogstashを起動しましたが
monitoriongのインデックス作成・画面表示が行われません。
Kibanaバージョン:7.1
Logstashバージョン:7.1
①下記URLに則り、ymlとconfigを設定 →NG
https://www.elastic.co/guide/en/logstash/current/configuring-logstash.html
logstash.yml
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.username: <ユーザ名>
xpack.monitoring.elasticsearch.password: <パスワード>
xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
Logstashのconfig
output {
if "metric" in [tags] {
elasticsearch{
hosts => [ "localhost:9200" ]
user => "logstash.ymlのユーザ名"
password => "logstash.ymlのパスワード"
index => "インデックス名"
}
}
}
② ①がNGだったので、下記URLに則り、ymlとconfigを設定 →NG
https://www.elastic.co/guide/en/logstash/current/ls-security.html#ls-user-access
POST _xpack/security/role/logstash_writer
POST _xpack/security/user/logstash_internal
logstash.yml変更
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.username: logstash_system
xpack.monitoring.elasticsearch.password: <logstash_systemのパスワード>
xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
Logstashのconfig変更
output {
if "metric" in [tags] {
elasticsearch{
hosts => [ "localhost:9200" ]
user => logstash_internal
password => "logstash_internalのパスワード"
index => "インデックス名"
}
}
}
エラー表示
retrying failed action with response code: 403 ({"type"=>"security_exception", "reason"=>"action [indices:admin/create] is unauthorized for user [logstash_internal]"})
Retrying individual bulk actions that failed or were rejected by the previous bulk request. {:count=>1}
原因について、分かる方がいらっしゃいましたら教えてください。