curl - How to trigger a ticket on kibanahud from python code -


i stuck @ problem want once threshold reached want trigger ticket on kibanahud python code.

i creating json file data need ticket -> ticket.json

i using curl xpost create index

curl -xput 'http://localhost:9200/ticket_tweet/' -d ' index:   number_of_shards: 5   number_of_replicas: 2 ' 

and doing

curl -xpost http://localhost:9200/ticket_tweet/rook_ticket -d @ticket.json 

but getting error :

{"error":"unavailableshardsexception[[ticket_tweet][3] not enough active copies meet write consistency of [quorum] (have 1, needed 2). timeout: [1m], request: index {[ticket_tweet][rook_ticket][au2zd8qrdqkd3i74wg-f]

the error of shards....i did hit , try value of shards (since mapping not available) , problem got solved. if has better solution please provide


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -