# ElasticSearch Sink with Structured Streaming

**URL:** <https://discuss.elastic.co/t/elasticsearch-sink-with-structured-streaming/247723>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [September 7, 2020, 7:50am UTC](https://discuss.elastic.co/t/elasticsearch-sink-with-structured-streaming/247723 "2020-09-07T07:50:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jainshasha](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jainshasha](https://discuss.elastic.co/u/jainshasha)\
**Post date:** [September 7, 2020, 7:50am UTC](https://discuss.elastic.co/t/elasticsearch-sink-with-structured-streaming/247723/1 "2020-09-07T07:50:59Z")

</div>

Hi,

I am using this MR [https://github.com/elastic/elasticsearch-hadoop/pull/1498](https://github.com/elastic/elasticsearch-hadoop/pull/1498) for ElasticSearch sink with Structured Streaming but in that i am having issue in seeing some metrics like "numOutputRows" which always shows -1 instead of some values. Like for Kafka Sink it shows either 0 or some values but with ElasticSearch sink it shows -1 only

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 5, 2020, 7:51am UTC](https://discuss.elastic.co/t/elasticsearch-sink-with-structured-streaming/247723/2 "2020-10-05T07:51:17Z")

</div>

Closed on October 5, 2020, 7:51am UTC

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