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

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

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

Hi,

(This is more relevant to the ElasticSeach forum)

The insert API consists of

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

So to create a logstash index, you should call

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

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

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