# Upgrade from 6.4 to 7.2

**URL:** https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531
**Category:** Elasticsearch
**Created:** [July 2, 2019, 2:27pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531 "2019-07-02T14:27:50Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)
#### Post date: [July 2, 2019, 2:27pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/1 "2019-07-02T14:27:50Z")

</div>

We have just upgraded our deployment from 6 to version 7.2  
We have created 7 indices and in Kabana it show all of them having documents.

However, when we try to view the documents, only one of the indices shows the docs and the others return total of Zero. Even though in the index management tab the indices ALL have documents in them.

Please advise what we are overlooking

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 2, 2019, 3:36pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/2 "2019-07-02T15:36:51Z")

</div>

What gives:

```auto
GET /_cat/indices?v

```

You did not install 6.8 and then used the upgrade assistant?

---

<div class="post-metadata">

### Author: ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)
#### Post date: [July 2, 2019, 4:01pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/3 "2019-07-02T16:01:44Z")

</div>

Hi  
No. We created a new deployment. everything Fresh and added new Indices

---

<div class="post-metadata">

### Author: ![userguy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/userguy/32/6224_2.png) [@userguy](https://discuss.elastic.co/u/userguy)
#### Post date: [July 2, 2019, 4:14pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/4 "2019-07-02T16:14:21Z")

</div>

can you paste output of GET /\_cat/indices

---

<div class="post-metadata">

### Author: ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)
#### Post date: [July 2, 2019, 4:15pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/5 "2019-07-02T16:15:58Z")

</div>

> [@userguy](#):
>
> output

Sure. Here it is:

```auto
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open building-name-and-number-group-ie-2018-q4 Gx-XwgXjQuGcI6tH37QCNw 1 1 164 0 163.3kb 81.6kb
green open address-ie-2018-q4 95mb4-DvRVOX_q918af4UA 1 1 10000 0 18.8mb 9.4mb
green open thoroughfare-group-ie-2018-q4 J-ppzCNzQUOykEYi7J3EJQ 1 1 338 62 342.2kb 171.1kb
green open apm-7.2.0-onboarding-2019.07.02 AaH-e7rVTraW-Ix2FF4uTg 1 1 1 0 12.5kb 6.2kb
green open .security-7 a8Nmbw8PRgSsIzUW_h65OQ 1 1 38 0 162.4kb 63.1kb
green open building-name-group-ie-2018-q4 hPf8p2F-SAuZtzgItku6Jw 1 1 81 0 121.3kb 60.6kb
green open .kibana_1 tx8QvopLQFmj918NUixguw 1 1 7 0 80.8kb 37.4kb
green open building-number-group-ie-2018-q4 i21rs4ElRyq8xsIv0BthGQ 1 1 59 0 60.6kb 30.3kb
green open secondary-thoroughfare-group-ie-2018-q4 0ce9CGkxQHu1DsP2ffnkuA 1 1 10 0 18.9kb 9.4kb
green open building-group-ie-2018-q4 K20f_1IuS4-1GG0YZIdVDQ 1 1 68 4 96kb 48kb
green open .kibana_task_manager TZiEhVEFTui28xA8JsVnnA 1 1 2 0 50.1kb 12.7kb

```

---

<div class="post-metadata">

### Author: ![userguy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/userguy/32/6224_2.png) [@userguy](https://discuss.elastic.co/u/userguy)
#### Post date: [July 2, 2019, 4:19pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/6 "2019-07-02T16:19:47Z")

</div>

What does it show when you do **GET /index\_name/\_search?pretty=true**

---

<div class="post-metadata">

### Author: ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)
#### Post date: [July 2, 2019, 4:21pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/7 "2019-07-02T16:21:09Z")

</div>

**Command:**  
GET /building-name-and-number-group-ie/\_search  
{  
"query": {  
"match\_all": {}  
}  
}

**OUTPUT:**

{  
"took" : 1,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 1,  
"successful" : 1,  
"skipped" : 0,  
"failed" : 0  
},  
"hits" : {  
"total" : {  
"value" : 0,  
"relation" : "eq"  
},  
"max\_score" : null,  
"hits" :   
}  
}

---

<div class="post-metadata">

### Author: ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)
#### Post date: [July 2, 2019, 4:22pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/8 "2019-07-02T16:22:33Z")

</div>

Also the same if you use full index name instead of alias:  
building-name-and-number-group-ie-2018-q4

---

<div class="post-metadata">

### Author: ![userguy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/userguy/32/6224_2.png) [@userguy](https://discuss.elastic.co/u/userguy)
#### Post date: [July 2, 2019, 4:23pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/9 "2019-07-02T16:23:26Z")

</div>

what does the logs say wen you do query also can you share , /\_cluster/health?pretty=1 and /\_cat/shards

---

<div class="post-metadata">

### Author: ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)
#### Post date: [July 2, 2019, 4:24pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/10 "2019-07-02T16:24:55Z")

</div>

Sorry. Don't know how to view the logs. But should it be this difficult when Elasticsearch says there are say 200 docs but nothing for a match all query?

---

<div class="post-metadata">

### Author: ![userguy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/userguy/32/6224_2.png) [@userguy](https://discuss.elastic.co/u/userguy)
#### Post date: [July 2, 2019, 4:26pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/11 "2019-07-02T16:26:09Z")

</div>

You can view logs on server under /var/log/elasticsearch/Clustername.log

Also We need to check what is happening in background .

---

<div class="post-metadata">

### Author: ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)
#### Post date: [July 2, 2019, 4:26pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/12 "2019-07-02T16:26:24Z")

</div>

Found the logs. Says nothing to indicate any errors!

---

<div class="post-metadata">

### Author: ![userguy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/userguy/32/6224_2.png) [@userguy](https://discuss.elastic.co/u/userguy)
#### Post date: [July 2, 2019, 4:27pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/13 "2019-07-02T16:27:41Z")

</div>

> [@userguy](#):
>
> /\_cluster/health?pretty=1 and /\_cat/shards

can you post this

---

<div class="post-metadata">

### Author: ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)
#### Post date: [July 2, 2019, 4:28pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/14 "2019-07-02T16:28:42Z")

</div>

> [@userguy](#):
>
> /\_cluster/health?pretty=1 and /\_cat/shards

Sure. Here it is:

```
{
  "cluster_name" : "fc8b85de62274f64af5355e0785c2a8c",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 3,
  "number_of_data_nodes" : 2,
  "active_primary_shards" : 11,
  "active_shards" : 22,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 100.0
}

```

---

<div class="post-metadata">

### Author: ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)
#### Post date: [July 2, 2019, 4:33pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/15 "2019-07-02T16:33:07Z")

</div>

> [@han1](#):
>
> /\_cat/shards

And the shards:

```
thoroughfare-group-ie-2018-q4 0 p STARTED 338 171.1kb 172.27.135.207 instance-0000000001
thoroughfare-group-ie-2018-q4 0 r STARTED 338 171.1kb 172.27.60.248 instance-0000000000
.kibana_1 0 p STARTED 7 37.4kb 172.27.135.207 instance-0000000001
.kibana_1 0 r STARTED 7 43.3kb 172.27.60.248 instance-0000000000
address-ie-2018-q4 0 p STARTED 10000 9.4mb 172.27.135.207 instance-0000000001
address-ie-2018-q4 0 r STARTED 10000 9.4mb 172.27.60.248 instance-0000000000
building-number-group-ie-2018-q4 0 p STARTED 59 30.3kb 172.27.135.207 instance-0000000001
building-number-group-ie-2018-q4 0 r STARTED 59 30.3kb 172.27.60.248 instance-0000000000
building-name-and-number-group-ie-2018-q4 0 p STARTED 164 81.6kb 172.27.135.207 instance-0000000001
building-name-and-number-group-ie-2018-q4 0 r STARTED 164 81.6kb 172.27.60.248 instance-0000000000
apm-7.2.0-onboarding-2019.07.02 0 p STARTED 1 6.2kb 172.27.135.207 instance-0000000001
apm-7.2.0-onboarding-2019.07.02 0 r STARTED 1 6.3kb 172.27.60.248 instance-0000000000
.security-7 0 r STARTED 38 99.2kb 172.27.135.207 instance-0000000001
.security-7 0 p STARTED 38 63.1kb 172.27.60.248 instance-0000000000
building-name-group-ie-2018-q4 0 p STARTED 81 60.6kb 172.27.135.207 instance-0000000001
building-name-group-ie-2018-q4 0 r STARTED 81 60.6kb 172.27.60.248 instance-0000000000
.kibana_task_manager 0 p STARTED 2 12.7kb 172.27.135.207 instance-0000000001
.kibana_task_manager 0 r STARTED 2 37.4kb 172.27.60.248 instance-0000000000
secondary-thoroughfare-group-ie-2018-q4 0 p STARTED 10 9.4kb 172.27.135.207 instance-0000000001
secondary-thoroughfare-group-ie-2018-q4 0 r STARTED 10 9.4kb 172.27.60.248 instance-0000000000
building-group-ie-2018-q4 0 p STARTED 68 48kb 172.27.135.207 instance-0000000001
building-group-ie-2018-q4 0 r STARTED 68 48kb 172.27.60.248 instance-0000000000

```

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 2, 2019, 5:06pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/16 "2019-07-02T17:06:24Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.

What is the output of:

```auto
GET /_cat/aliases?v

```

---

<div class="post-metadata">

### Author: ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)
#### Post date: [July 2, 2019, 5:14pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/17 "2019-07-02T17:14:40Z")

</div>

> [@dadoonet](#):
>
> ```auto
> GET /_cat/aliases?v
> 
> ```

```
    alias index filter routing.index routing.search
building-group-ie building-group-ie-2018-q4 - - -
thoroughfare-group-ie thoroughfare-group-ie-2018-q4 - - -
secondary-thoroughfare-group-ie secondary-thoroughfare-group-ie-2018-q4 - - -
building-name-group-ie building-name-group-ie-2018-q4 - - -
.security .security-7 - - -
building-number-group-ie building-number-group-ie-2018-q4 - - -
address-ie address-ie-2018-q4 - - -
building-name-and-number-group-ie building-name-and-number-group-ie-2018-q4 - - -
.kibana .kibana_1 - - -

```

---

<div class="post-metadata">

### Author: ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)
#### Post date: [July 2, 2019, 5:51pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/18 "2019-07-02T17:51:13Z")

</div>

Did this give you any useful insight?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 2, 2019, 7:30pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/19 "2019-07-02T19:30:22Z")

</div>

What is the output of:

```auto
GET /building-name-and-number-group-ie-2018-q4/_search?size=0

```

What tool do you use to run this query?

---

<div class="post-metadata">

### Author: ![han1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/han1/32/20141_2.png) [@han1](https://discuss.elastic.co/u/han1)
#### Post date: [July 2, 2019, 8:13pm UTC](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531/20 "2019-07-02T20:13:51Z")

</div>

> [@dadoonet](#):
>
> ```auto
> GET /building-name-and-number-group-ie-2018-q4/_search?size=0
> 
> ```

```
{
  "took" : 0,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 0,
      "relation" : "eq"
    },
    "max_score" : null,
    "hits" : []
  }
}

```

I use the dev tools in Kibana

[Next page](https://discuss.elastic.co/t/upgrade-from-6-4-to-7-2/188531.md?page=2)
