# How to read local0 files in unix using filebeat

**URL:** <https://discuss.elastic.co/t/how-to-read-local0-files-in-unix-using-filebeat/286181>\
**Category:** Logstash\
**Created:** [October 8, 2021, 6:24am UTC](https://discuss.elastic.co/t/how-to-read-local0-files-in-unix-using-filebeat/286181 "2021-10-08T06:24:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![muralikrishna](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@muralikrishna](https://discuss.elastic.co/u/muralikrishna)\
**Post date:** [October 8, 2021, 6:24am UTC](https://discuss.elastic.co/t/how-to-read-local0-files-in-unix-using-filebeat/286181/1 "2021-10-08T06:24:34Z")

</div>

Hello Everyone,

I have some applications writing the logs to local0.info & local4.info file in UNIX servers.

I have to read the log content from above files using filebeat.yml and send the same to Logstash.

We can't read them using the dedicated path as "/Path/local0.info" as there is no such dedicated/regular path for the local files in unix system..

Could you please help me how to read/configure the input section as i am not able to find the exact path for local files (if there is any)

or if there is any other way to read the local file content directly using filebeat.

Thanks.

---

<div class="post-metadata">

**Author:** ![muralikrishna](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@muralikrishna](https://discuss.elastic.co/u/muralikrishna)\
**Post date:** [October 11, 2021, 3:02pm UTC](https://discuss.elastic.co/t/how-to-read-local0-files-in-unix-using-filebeat/286181/2 "2021-10-11T15:02:28Z")

</div>

Seems we have only solution for this, We have to use syslog service to write/route the local file content to any dedicated path and should read using filebeat.

Syslog config looks like:  
local0.info /var/log/messages

then read /var/log/messages file using filebeat.yml..

Though this solution doesn't meet my requirements, unfortunately this is the only way we have ☹

---

<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:** [November 8, 2021, 3:02pm UTC](https://discuss.elastic.co/t/how-to-read-local0-files-in-unix-using-filebeat/286181/3 "2021-11-08T15:02:40Z")

</div>

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