# Elasticsearch sink - Send data to Logstash

**URL:** <https://discuss.elastic.co/t/elasticsearch-sink-send-data-to-logstash/48625>\
**Category:** Elasticsearch\
**Created:** [April 28, 2016, 5:17am UTC](https://discuss.elastic.co/t/elasticsearch-sink-send-data-to-logstash/48625 "2016-04-28T05:17:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [April 28, 2016, 5:17am UTC](https://discuss.elastic.co/t/elasticsearch-sink-send-data-to-logstash/48625/1 "2016-04-28T05:17:36Z")

</div>

I am using ElasticSearch sink to capture all the event logs. Currently, it is capturing the data and It is sending it to ES directly.

But I want the sink to send the data to logstash for processing. I need to rename, remove and add fields as per req.

Semantic Logging Elastic Search sink configuration -

customSink name="MyElasticsearchSink" type  
parameter name="instanceName" type="System.String" value="ElasticInstanceNme"  
parameter name="connectionString" type="System.String" value="[http://localhost:9200](http://localhost:9200)"

Can anyone let me know how can I achieve this ?

---

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [April 28, 2016, 5:00pm UTC](https://discuss.elastic.co/t/elasticsearch-sink-send-data-to-logstash/48625/2 "2016-04-28T17:00:06Z")

</div>

Any comments on this please ?

---

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [April 29, 2016, 9:21pm UTC](https://discuss.elastic.co/t/elasticsearch-sink-send-data-to-logstash/48625/3 "2016-04-29T21:21:50Z")

</div>

Can any one provide any comments on this please ?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 2, 2016, 7:55pm UTC](https://discuss.elastic.co/t/elasticsearch-sink-send-data-to-logstash/48625/4 "2016-05-02T19:55:52Z")

</div>

Logstash supports a number of different input plugins (e.g. HTTP or plain TCP or UDP) and I'm sure you'll be able to find a way to connect Semantic Logging to one of them. I don't know anything about Semantic Logging so I can't comment on specifics.

---

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [May 2, 2016, 10:06pm UTC](https://discuss.elastic.co/t/elasticsearch-sink-send-data-to-logstash/48625/5 "2016-05-02T22:06:44Z")

</div>

Thanks for the reply Magnus.

Can you share some links where I find some examples to set up the same?

Also, I had one more query. Do we have any APIs for Logstash to connect it via C# code/.NET ?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 3, 2016, 7:35am UTC](https://discuss.elastic.co/t/elasticsearch-sink-send-data-to-logstash/48625/6 "2016-05-03T07:35:23Z")

</div>

> Can you share some links where I find some examples to set up the same?

It's not clear what "the same" means here. Which input plugin did you have in mind?

> Also, I had one more query. Do we have any APIs for Logstash to connect it via C# code/.NET ?

Again, have a look at the list of input plugins and see if anyone fits your purpose. I'm not aware of a .NET library specifically for sending data to Logstash but there are obviously libraries for e.g. HTTP.

---

<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:** [July 5, 2017, 10:54pm UTC](https://discuss.elastic.co/t/elasticsearch-sink-send-data-to-logstash/48625/7 "2017-07-05T22:54:29Z")

</div>


