# A java application log

**URL:** <https://discuss.elastic.co/t/a-java-application-log/94625>\
**Category:** Logstash\
**Created:** [July 26, 2017, 11:15am UTC](https://discuss.elastic.co/t/a-java-application-log/94625 "2017-07-26T11:15:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bouali\_Inass](https://avatars.discourse-cdn.com/v4/letter/b/a88e4f/32.png) [@Bouali\_Inass](https://discuss.elastic.co/u/Bouali_Inass)\
**Post date:** [July 26, 2017, 11:15am UTC](https://discuss.elastic.co/t/a-java-application-log/94625/1 "2017-07-26T11:15:57Z")

</div>

Hey everyone i have a java application and i wanna visualise her logs with kibana but i dont wanna read those files with filebeat and send them to logstash  
i want to send them directly to logstash !!!  
Is there anyway i can do this ??

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [July 26, 2017, 8:58pm UTC](https://discuss.elastic.co/t/a-java-application-log/94625/2 "2017-07-26T20:58:29Z")

</div>

The application is on the same machine as the Logstash service? If it is, you can use the file input plugin in logstash.

```auto
input {
    file {
        path => "/your/application/logfile.log"
        type => "type-name"      
    }
}

```

And then, if you need, you can parse the log lines in the filter block of the pipeline.

---

<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:** [August 23, 2017, 8:58pm UTC](https://discuss.elastic.co/t/a-java-application-log/94625/3 "2017-08-23T20:58:50Z")

</div>

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