Monitoring not working

Hi everyone.

I'm having an issue with my elastic instance whereby I can't get monitoring working. I've recently upgraded from 5.6 where I had monitor working on a trial xpack licence to 6.4 where I have the standard free licence. When I click the Monitoring link I get the usual "We couldn't activate monitoring" error. My cluster is currently a single node.

I can see the monitor indices are being created:

green open .monitoring-es-6-2018.09.17 BDvrkfZPQmCxNna6cO_fhg 1 0 9722010 15605 4gb 4gb
green open .monitoring-kibana-6-2018.09.15 CTwkSJeFR4qwQqRwPkqSiA 1 0 8639 0 2mb 2mb

I have researched and found some issues regarding cluster_stats. I have ran this command:

GET /.monitoring-es-6-*/_search
{
  "size": 0,
  "query": {
    "term": {
      "type": "cluster_stats"
    }
  },
  "aggs": {
    "group_by_day": {
      "date_histogram": {
        "field": "timestamp",
        "interval": "day"
      }
    }
  }
}

And get this result:

> {
>   "took": 1,
>   "timed_out": false,
>   "_shards": {
>     "total": 7,
>     "successful": 7,
>     "skipped": 0,
>     "failed": 0
>   },
>   "hits": {
>     "total": 0,
>     "max_score": 0,
>     "hits": []
>   },
>   "aggregations": {
>     "group_by_day": {
>       "buckets": []
>     }
>   }
> }

Any ideas how I could get monitoring working?

Thanks in advance.

1 Like

FYI for anyone that comes across this issue. I was able to fix it by deleting the old .security index. When looking through the logs I could see:

`collector [cluster_stats] failed to collect data
java.lang.IllegalStateException: Security index is not on the current version. Security features relying on the index will not be available until the upgrade API is run on the security index
`
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.