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

(Rob Davidson) #1

I'm investigating feasability of sending spring boot application logs directly into elastic search. 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.

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

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

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?

(system) #2

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