# Can you ingest Spring boot logs directly from the App into elastic via TCP

**URL:** <https://discuss.elastic.co/t/can-you-ingest-spring-boot-logs-directly-from-the-app-into-elastic-via-tcp/96302>\
**Category:** Elasticsearch\
**Created:** [August 8, 2017, 3:46pm UTC](https://discuss.elastic.co/t/can-you-ingest-spring-boot-logs-directly-from-the-app-into-elastic-via-tcp/96302 "2017-08-08T15:46:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rob\_Davidson](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@Rob\_Davidson](https://discuss.elastic.co/u/Rob_Davidson)\
**Post date:** [August 8, 2017, 3:46pm UTC](https://discuss.elastic.co/t/can-you-ingest-spring-boot-logs-directly-from-the-app-into-elastic-via-tcp/96302/1 "2017-08-08T15:46:38Z")

</div>

I'm investigating feasability of sending spring boot application logs directly into Elasticsearch. Without using filebeats or logstash. But with the Ingest plugin.

I'm wondering if this is possible? If it is possible what would be the pitfalls etc.

My initial thoughts are to do this using logback as that comes preinstalled with spring boot.

[https://github.com/logstash/logstash-logback-encoder](http://logstash/logstash-logback-encoder)

```
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <appender name="stash" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
      <destination>127.0.0.1:4560</destination>
      <encoder class="net.logstash.logback.encoder.LogstashEncoder" />
  </appender>

  <root level="DEBUG">
      <appender-ref ref="stash" />
  </root>
</configuration>

```

So looking at the above you can send logs directly into logstash. Im just wondering if it was possible to use the newer functionality of ingest and skip using logstash? By sending json encoded logs directly into elastic over the network using the ingest method?

> [A New Way To Ingest - Part 1 | Elastic Blog](https://www.elastic.co/blog/new-way-to-ingest-part-1)

---

<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:** [September 5, 2017, 3:46pm UTC](https://discuss.elastic.co/t/can-you-ingest-spring-boot-logs-directly-from-the-app-into-elastic-via-tcp/96302/2 "2017-09-05T15:46:48Z")

</div>

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