Elasticsearch index response in logstash

Hi, I am trying to index data to elasticsearch through logstash. I want to get the output like how we get the result using curl commands or apis(like below).

{
"_index": "testindex",
"_type": "_doc",
"_id": "1",
"_version": 1,
"result": "created",
"_shards": {
"total": 2,
"successful": 1,
"failed": 0
},
"_seq_no": 0,
"_primary_term": 1
}

I don't understand. You want to index the response you get from REST APIs?

I believe he is asking for a "successful/failed" response from LS, like you'd get from the API. I don't believe its natively possible in LS, though. There's no feedback beyond the LS logs and that's not the same.

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