# I can't have the index logstash using mydomaine:9200/\_cat/indices?v

**URL:** <https://discuss.elastic.co/t/i-cant-have-the-index-logstash-using-mydomaine-9200-cat-indices-v/111967>\
**Category:** Logstash\
**Created:** [December 15, 2017, 11:35am UTC](https://discuss.elastic.co/t/i-cant-have-the-index-logstash-using-mydomaine-9200-cat-indices-v/111967 "2017-12-15T11:35:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marouane](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marouane/32/83858_2.png) [@marouane](https://discuss.elastic.co/u/marouane)\
**Post date:** [December 15, 2017, 11:35am UTC](https://discuss.elastic.co/t/i-cant-have-the-index-logstash-using-mydomaine-9200-cat-indices-v/111967/1 "2017-12-15T11:35:31Z")

</div>

Hello every one  
i'm working on adding the index logstash  
i followed this link : [Index and Query a Document | Elasticsearch Guide [1.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/1.4/_index_and_query_a_document.html)

and i exected this :

curl -XPUT 'localhost:9200/customer/external/1?pretty' -d '

> {  
> "name": "John Doe"  
> }'

----\> this is the result :  
{  
"\_index" : "customer",  
"\_type" : "external",  
"\_id" : "1",  
"\_version" : 1,  
"result" : "created",  
"\_shards" : {  
"total" : 2,  
"successful" : 1,  
"failed" : 0  
},  
"created" : true  
}

when i put : mydomaine:9200/\_cat/indices?v

i got this :

health status index uuid pri rep docs.count docs.deleted store.size pri.store.size  
yellow open customer gNslldHPS7qZ-9tjWM2PlQ 5 1 2 0 7kb 7kb  
yellow open .kibana h9fV49qHRa2BNZi71GUwYA 1 1 1 0 3.1kb 3.1kb

i want that i get logstash in place of customer

---

<div class="post-metadata">

**Author:** ![paz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paz/32/28003_2.png) [@paz](https://discuss.elastic.co/u/paz)\
**Post date:** [December 15, 2017, 12:00pm UTC](https://discuss.elastic.co/t/i-cant-have-the-index-logstash-using-mydomaine-9200-cat-indices-v/111967/2 "2017-12-15T12:00:27Z")

</div>

Hi,

(This is more relevant to the ElasticSeach forum)

The insert API consists of

```auto
curl -XPUT '{host}:{port}/{index}/{type}/{_id}'
```

So to create a _logstash_ index, you should call

```auto
curl -XPUT localhost:9200/logstash/external/1?pretty -d '
{
   "name": "John Doe"
}'
```

---

<div class="post-metadata">

**Author:** ![marouane](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marouane/32/83858_2.png) [@marouane](https://discuss.elastic.co/u/marouane)\
**Post date:** [December 18, 2017, 4:33pm UTC](https://discuss.elastic.co/t/i-cant-have-the-index-logstash-using-mydomaine-9200-cat-indices-v/111967/3 "2017-12-18T16:33:37Z")

</div>

Thank you for your response,  
I applied and it turn good 🙂

---

<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:** [January 15, 2018, 4:33pm UTC](https://discuss.elastic.co/t/i-cant-have-the-index-logstash-using-mydomaine-9200-cat-indices-v/111967/4 "2018-01-15T16:33:59Z")

</div>

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