# Can logstash take in a Json Object straight from a java application

**URL:** <https://discuss.elastic.co/t/can-logstash-take-in-a-json-object-straight-from-a-java-application/187610>\
**Category:** Logstash\
**Created:** [June 26, 2019, 3:15pm UTC](https://discuss.elastic.co/t/can-logstash-take-in-a-json-object-straight-from-a-java-application/187610 "2019-06-26T15:15:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhbala](https://avatars.discourse-cdn.com/v4/letter/n/a9adbd/32.png) [@nhbala](https://discuss.elastic.co/u/nhbala)\
**Post date:** [June 26, 2019, 3:15pm UTC](https://discuss.elastic.co/t/can-logstash-take-in-a-json-object-straight-from-a-java-application/187610/1 "2019-06-26T15:15:50Z")

</div>

Is there a way to configure Logstash to take data straight from a Java application without the need to write it to a file?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 26, 2019, 3:25pm UTC](https://discuss.elastic.co/t/can-logstash-take-in-a-json-object-straight-from-a-java-application/187610/2 "2019-06-26T15:25:13Z")

</div>

Sure, there are many other [input plugins](https://www.elastic.co/guide/en/logstash/current/input-plugins.html). http, tcp, and unix would all be possibilities.

---

<div class="post-metadata">

**Author:** ![nhbala](https://avatars.discourse-cdn.com/v4/letter/n/a9adbd/32.png) [@nhbala](https://discuss.elastic.co/u/nhbala)\
**Post date:** [June 26, 2019, 3:38pm UTC](https://discuss.elastic.co/t/can-logstash-take-in-a-json-object-straight-from-a-java-application/187610/3 "2019-06-26T15:38:55Z")

</div>

Could you possible provide an example for this? I am a bit new to logstash and not sure where to start in terms of this problem.

---

<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 24, 2019, 3:38pm UTC](https://discuss.elastic.co/t/can-logstash-take-in-a-json-object-straight-from-a-java-application/187610/4 "2019-07-24T15:38:58Z")

</div>

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