# How can I send logs to logstash without using any beat/agent

**URL:** <https://discuss.elastic.co/t/how-can-i-send-logs-to-logstash-without-using-any-beat-agent/122310>\
**Category:** Logstash\
**Created:** [March 2, 2018, 7:22pm UTC](https://discuss.elastic.co/t/how-can-i-send-logs-to-logstash-without-using-any-beat-agent/122310 "2018-03-02T19:22:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajkumar.m](https://avatars.discourse-cdn.com/v4/letter/r/e9bcb4/32.png) [@rajkumar.m](https://discuss.elastic.co/u/rajkumar.m)\
**Post date:** [March 2, 2018, 7:22pm UTC](https://discuss.elastic.co/t/how-can-i-send-logs-to-logstash-without-using-any-beat-agent/122310/1 "2018-03-02T19:22:56Z")

</div>

I would like to know How can I send logs from a client to logstash without using any beat/agent,  
is it possible to use API and how. please help me

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 2, 2018, 10:39pm UTC](https://discuss.elastic.co/t/how-can-i-send-logs-to-logstash-without-using-any-beat-agent/122310/2 "2018-03-02T22:39:00Z")

</div>

You could use a tcp or http input plugin depending on how you prefer to send data.

---

<div class="post-metadata">

**Author:** ![rajkumar.m](https://avatars.discourse-cdn.com/v4/letter/r/e9bcb4/32.png) [@rajkumar.m](https://discuss.elastic.co/u/rajkumar.m)\
**Post date:** [March 2, 2018, 10:50pm UTC](https://discuss.elastic.co/t/how-can-i-send-logs-to-logstash-without-using-any-beat-agent/122310/3 "2018-03-02T22:50:29Z")

</div>

i would like to send un-structured data, the same way filebeat sends to logstash

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 3, 2018, 12:01am UTC](https://discuss.elastic.co/t/how-can-i-send-logs-to-logstash-without-using-any-beat-agent/122310/4 "2018-03-03T00:01:34Z")

</div>

You should be able to use the tcp input plugin to send any log lines as long as they are separated by newlines.

---

<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:** [March 31, 2018, 12:01am UTC](https://discuss.elastic.co/t/how-can-i-send-logs-to-logstash-without-using-any-beat-agent/122310/5 "2018-03-31T00:01:46Z")

</div>

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