# How to collect logs using logstash in ubuntu?

**URL:** <https://discuss.elastic.co/t/how-to-collect-logs-using-logstash-in-ubuntu/177169>\
**Category:** Logstash\
**Created:** [April 16, 2019, 11:42pm UTC](https://discuss.elastic.co/t/how-to-collect-logs-using-logstash-in-ubuntu/177169 "2019-04-16T23:42:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![farida](https://avatars.discourse-cdn.com/v4/letter/f/9dc877/32.png) [@farida](https://discuss.elastic.co/u/farida)\
**Post date:** [April 16, 2019, 11:42pm UTC](https://discuss.elastic.co/t/how-to-collect-logs-using-logstash-in-ubuntu/177169/1 "2019-04-16T23:42:03Z")

</div>

I had installed ELK in a VM machine (Ubuntu) but i don't know how i recover logs file with logstash.

---

<div class="post-metadata">

**Author:** ![gabriel\_tessier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel_tessier/32/27911_2.png) [@gabriel\_tessier](https://discuss.elastic.co/u/gabriel_tessier)\
**Post date:** [April 17, 2019, 12:56am UTC](https://discuss.elastic.co/t/how-to-collect-logs-using-logstash-in-ubuntu/177169/2 "2019-04-17T00:56:40Z")

</div>

Hi,

You can start with this: [https://www.elastic.co/guide/en/logstash/7.0/advanced-pipeline.html](https://www.elastic.co/guide/en/logstash/7.0/advanced-pipeline.html)

Or more simple directly with filebeat without logstatsh at least at beginning. Then depends on your needs you can continue with logstatsh. 😀

[https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-getting-started.html](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-getting-started.html)

Hope it not make you more confuse.

---

<div class="post-metadata">

**Author:** ![farida](https://avatars.discourse-cdn.com/v4/letter/f/9dc877/32.png) [@farida](https://discuss.elastic.co/u/farida)\
**Post date:** [April 17, 2019, 11:04am UTC](https://discuss.elastic.co/t/how-to-collect-logs-using-logstash-in-ubuntu/177169/3 "2019-04-17T11:04:06Z")

</div>

Thank's for the reply @gabriel_tessier ,  
It is very helpful.

---

<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:** [May 15, 2019, 11:17am UTC](https://discuss.elastic.co/t/how-to-collect-logs-using-logstash-in-ubuntu/177169/4 "2019-05-15T11:17:19Z")

</div>

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