I'm getting peppered with this message pretty much non-stop and haven't been able to figure out what's causing my issue, could someone point me in the right direction? I believe this is causing my overall problem, which is that kibana is reporting an Authentication Exception under my status breakdowns under the monitoring plugin, and as such the status is red.
I'm finding the error in my kibana.log, here is the full message:
{"type":"log","@timestamp":"2017-09-20T21:27:06Z","tags":
["license","warning","xpack"],"pid":38255,"message":"License information could not be obtained from Elasticsearch.
[security_exception] missing authentication token for REST request [/_xpack], with { header={ WWW-
Authenticate=\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\" } } ::
{\"path\":\"/_xpack\",\"statusCode\":401,\"response\":\"{\\\"error\\\":{\\\"root_cause\\\":
[{\\\"type\\\":\\\"security_exception\\\",\\\"reason\\\":\\\"missing authentication token for REST request
[/_xpack]\\\",\\\"header\\\":{\\\"WWW-Authenticate\\\":\\\"Basic realm=\\\\\\\"security\\\\\\\" charset=\\\\\\\"UTF-
8\\\\\\\"\\\"}}],\\\"type\\\":\\\"security_exception\\\",\\\"reason\\\":\\\"missing authentication token for REST request
[/_xpack]\\\",\\\"header\\\":{\\\"WWW-Authenticate\\\":\\\"Basic realm=\\\\\\\"security\\\\\\\" charset=\\\\\\\"UTF-
8\\\\\\\"\\\"}},\\\"status\\\":401}\",\"wwwAuthenticateDirective\":\"Basic realm=\\\"security\\\" charset=\\\"UTF-
8\\\"\"}"}
This is my kibana.yml:
# ---------------------------------- Server -----------------------------------
server:
port: 5601
host: "localhost"
#basePath: ""
maxPayloadBytes: 1048576
name: "hyperv-kibana"
ssl:
#enabled: false
#certificate: /path/to/your/server.crt
#key: /path/to/your/server.key
pid.file: /var/run/kibana.pid
ops.interval: 5000
# ------------------------------- Elasticsearch --------------------------------
elasticsearch:
url: "http://localhost:9200"
preserveHost: true
username: "elastic"
password: "changeme"
#ssl:
#certificate: /path/to/your/client.crt
#key: /path/to/your/client.key
#certificateAuthorities: [ "/path/to/your/CA.pem" ]
#verificationMode: full
pingTimeout: 1500
requestTimeout: 30000
shardTimeout: 0
startupTimeout: 5000
#requestHeadersWhitelist: [ authorization ]
#customHeaders: {}
# ---------------------------------- Kibana ------------------------------------
kibana:
index: ".kibana"
defaultAppId: "discover"
# ---------------------------------- X-Pack ------------------------------------
xpack:
security.enabled: true
monitoring:
enabled: true
max_bucket_size: 10000
min_interval_seconds: 10000
node_resolver: "uuid"
report_stats: false
kibana.collection.enabled: true
kibana.collection.interval: 10000
graph.enabled: true
watcher.enabled: true
reporting.enabled: true
# ---------------------------------- Logging -----------------------------------
logging:
dest: /var/log/kibana/
silent: false
quiet: false
verbose: true