Is it possible to send logs to Logstash
<p>In my Spring Boot app, I am using Logback to write logs to a file in /tmp/myLog.log.</p>

<p>In my app.yml:</p>

<pre><code>logging:
  file: /tmp/myLog.log
</code></pre>

<p>My logback.xml:</p>



<pre><code>&lt;configuration&gt;
    &lt;property name="LOG_FILE" value="${LOG_FILE:-${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}/}spring.log}"/&gt;
    &lt;property name="FILE_LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } [%t] --- %-40.40logger{39} : %m%n"/&gt;

    &lt;appender name="FILE"
              class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
        &lt;encoder&gt;
            &lt;pattern&gt;${FILE_LOG_PATTERN}&lt;/pattern&gt;
        &lt;/encoder&gt;
        &lt;file&gt;${LOG_FILE}&lt;/file&gt;
        &lt;rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"&gt;
            &lt;fileNamePattern&gt;${LOG_FILE}.%i&lt;/fileNamePattern&gt;
        &lt;/rollingPolicy&gt;
        &lt;triggeringPolicy
                class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"&gt;
            &lt;MaxFileSize&gt;10MB&lt;/MaxFileSize&gt;
        &lt;/triggeringPolicy&gt;
    &lt;/appender&gt;

    &lt;root level="INFO"&gt;
        &lt;appender-ref ref="FILE" /&gt;
    &lt;/root&gt;

&lt;/configuration&gt;
</code></pre>

<p>Then I tell Logstash to look at this log file, in my conf file:</p>

<pre><code>input {
  file {
    path =&gt; "/tmp/myLog.log"
    start_position =&gt; "beginning"
  }
}
output {
  elasticsearch { hosts =&gt; ["localhost:9200"] }
  stdout { codec =&gt; json }
} 
</code></pre>

<p>Now It is looking at this location at myLog.log. Is there a way to send logs to logstash instead of telling it to looking at a location, in my Spring Boot app?</p>