# I would like to send data from spring boot app to elasticsearch

**URL:** <https://discuss.elastic.co/t/i-would-like-to-send-data-from-spring-boot-app-to-elasticsearch/182836>\
**Category:** Elasticsearch\
**Created:** [May 27, 2019, 5:20am UTC](https://discuss.elastic.co/t/i-would-like-to-send-data-from-spring-boot-app-to-elasticsearch/182836 "2019-05-27T05:20:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xodn0812](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xodn0812](https://discuss.elastic.co/u/xodn0812)\
**Post date:** [May 27, 2019, 5:20am UTC](https://discuss.elastic.co/t/i-would-like-to-send-data-from-spring-boot-app-to-elasticsearch/182836/1 "2019-05-27T05:20:11Z")

</div>

I would like to send data from spring boot app to elasticsearch.  
Which way is better?  
What use case is there?  
and, i am using fluentD.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 27, 2019, 6:17am UTC](https://discuss.elastic.co/t/i-would-like-to-send-data-from-spring-boot-app-to-elasticsearch/182836/2 "2019-05-27T06:17:50Z")

</div>

That's what I'd do as well.

---

<div class="post-metadata">

**Author:** ![xodn0812](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xodn0812](https://discuss.elastic.co/u/xodn0812)\
**Post date:** [May 27, 2019, 8:01am UTC](https://discuss.elastic.co/t/i-would-like-to-send-data-from-spring-boot-app-to-elasticsearch/182836/3 "2019-05-27T08:01:32Z")

</div>

Thank you for your answer.  
So, is it OK to send it to flowentD from Spring Boot app using UDP?  
I don't know which way is common.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 27, 2019, 8:15am UTC](https://discuss.elastic.co/t/i-would-like-to-send-data-from-spring-boot-app-to-elasticsearch/182836/4 "2019-05-27T08:15:02Z")

</div>

I'm not a fluentd user.

I shared most of my thoughts there: [http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/](http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/)

Basically, I'd recommend modifying the application layer if possible and send data to elasticsearch in the same "transaction" as you are sending your data to the database.

---

<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:** [June 24, 2019, 8:15am UTC](https://discuss.elastic.co/t/i-would-like-to-send-data-from-spring-boot-app-to-elasticsearch/182836/5 "2019-06-24T08:15:03Z")

</div>

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