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
Post a Comment