# Monitoring not working

**URL:** <https://discuss.elastic.co/t/monitoring-not-working/149277>\
**Category:** Elasticsearch\
**Created:** [September 20, 2018, 10:56am UTC](https://discuss.elastic.co/t/monitoring-not-working/149277 "2018-09-20T10:56:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpover](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kpover](https://discuss.elastic.co/u/kpover)\
**Post date:** [September 20, 2018, 10:56am UTC](https://discuss.elastic.co/t/monitoring-not-working/149277/1 "2018-09-20T10:56:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kpover](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kpover](https://discuss.elastic.co/u/kpover)\
**Post date:** [September 21, 2018, 8:35am UTC](https://discuss.elastic.co/t/monitoring-not-working/149277/2 "2018-09-21T08:35:54Z")

</div>

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
`
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 19, 2018, 8:36am UTC](https://discuss.elastic.co/t/monitoring-not-working/149277/3 "2018-10-19T08:36:00Z")

</div>

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