# Application log file integration

**URL:** <https://discuss.elastic.co/t/application-log-file-integration/40556>\
**Category:** Logstash\
**Created:** [January 30, 2016, 1:07pm UTC](https://discuss.elastic.co/t/application-log-file-integration/40556 "2016-01-30T13:07:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sivaprakash\_Shanmuga](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Sivaprakash\_Shanmuga](https://discuss.elastic.co/u/Sivaprakash_Shanmuga)\
**Post date:** [January 30, 2016, 1:07pm UTC](https://discuss.elastic.co/t/application-log-file-integration/40556/1 "2016-01-30T13:07:02Z")

</div>

Hi

I'm looking for solutions for 2 use cases

1. Is there any plugin for mongo db to logstash? I want to import data into logstash and analyze it.

2. My application written in Python/Django, now Im writing log files into files into local disk. Is there any way to move them to logstash?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 30, 2016, 2:13pm UTC](https://discuss.elastic.co/t/application-log-file-integration/40556/2 "2016-01-30T14:13:38Z")

</div>

1. There's no official MongoDB input plugin, but see [https://github.com/phutchins/logstash-input-mongodb](https://github.com/phutchins/logstash-input-mongodb).
2. Yes, use a [file input](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html). I'd use a custom JSON formatter on the Python side so that the logs can be ingested by Logstash without additional parsing.

---

<div class="post-metadata">

**Author:** ![Sivaprakash\_Shanmuga](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Sivaprakash\_Shanmuga](https://discuss.elastic.co/u/Sivaprakash_Shanmuga)\
**Post date:** [February 1, 2016, 4:17am UTC](https://discuss.elastic.co/t/application-log-file-integration/40556/3 "2016-02-01T04:17:51Z")

</div>

Thank You

I believe file input will read from Log file hence there wont be any performance hit to my application. Is my understanding correct?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 1, 2016, 6:32am UTC](https://discuss.elastic.co/t/application-log-file-integration/40556/4 "2016-02-01T06:32:09Z")

</div>

Correct, although Filebeat or Logstash itself will require some system resources but unless you're logging _a lot_ it'll be negligible.

---

<div class="post-metadata">

**Author:** ![Sivaprakash\_Shanmuga](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Sivaprakash\_Shanmuga](https://discuss.elastic.co/u/Sivaprakash_Shanmuga)\
**Post date:** [February 1, 2016, 7:17am UTC](https://discuss.elastic.co/t/application-log-file-integration/40556/5 "2016-02-01T07:17:23Z")

</div>

Thank you.

---

<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:** [July 6, 2017, 5:13am UTC](https://discuss.elastic.co/t/application-log-file-integration/40556/6 "2017-07-06T05:13:37Z")

</div>


