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


(marxper) #1

Hello every one
i'm working on adding the index logstash
i followed this link : 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


(Paris Mermigkas) #2

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"
}'

(marxper) #3

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


(system) #4

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