# How to configure server logs in Logstash?

**URL:** <https://discuss.elastic.co/t/how-to-configure-server-logs-in-logstash/131571>\
**Category:** Logstash\
**Created:** [May 12, 2018, 1:25pm UTC](https://discuss.elastic.co/t/how-to-configure-server-logs-in-logstash/131571 "2018-05-12T13:25:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raja\_Pandian](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@Raja\_Pandian](https://discuss.elastic.co/u/Raja_Pandian)\
**Post date:** [May 12, 2018, 1:25pm UTC](https://discuss.elastic.co/t/how-to-configure-server-logs-in-logstash/131571/1 "2018-05-12T13:25:06Z")

</div>

I need to display logs which is in Unix server.How to connect Unix server and get the latest logs through Logstash configure? How to define server credentials and host details in Logstash configuration?

---

<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:** [May 13, 2018, 7:59pm UTC](https://discuss.elastic.co/t/how-to-configure-server-logs-in-logstash/131571/2 "2018-05-13T19:59:21Z")

</div>

While not impossible to accomplish, Logstash is normally not configured to connect to the servers where the logs reside. You'd instead run an agent on those servers (preferably Filebeat since it's very lightweight) that reads and ships the logs to Logstash.

---

<div class="post-metadata">

**Author:** ![Raja\_Pandian](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@Raja\_Pandian](https://discuss.elastic.co/u/Raja_Pandian)\
**Post date:** [May 14, 2018, 6:05am UTC](https://discuss.elastic.co/t/how-to-configure-server-logs-in-logstash/131571/3 "2018-05-14T06:05:43Z")

</div>

Thanks Magnusbaeck.

---

<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:** [June 11, 2018, 6:05am UTC](https://discuss.elastic.co/t/how-to-configure-server-logs-in-logstash/131571/4 "2018-06-11T06:05:44Z")

</div>

Closed on June 11, 2018, 6:05am UTC

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