# How to read local0.info and local4.info file content in UNIX server using filebeat configuration

**URL:** <https://discuss.elastic.co/t/how-to-read-local0-info-and-local4-info-file-content-in-unix-server-using-filebeat-configuration/280000>\
**Category:** Logstash\
**Created:** [July 29, 2021, 2:46pm UTC](https://discuss.elastic.co/t/how-to-read-local0-info-and-local4-info-file-content-in-unix-server-using-filebeat-configuration/280000 "2021-07-29T14:46:29Z")\
**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:** [July 29, 2021, 2:46pm UTC](https://discuss.elastic.co/t/how-to-read-local0-info-and-local4-info-file-content-in-unix-server-using-filebeat-configuration/280000/1 "2021-07-29T14:46:29Z")

</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.

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.

Thanks.

---

<div class="post-metadata">

**Author:** ![grumo35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grumo35/32/59451_2.png) [@grumo35](https://discuss.elastic.co/u/grumo35)\
**Post date:** [July 29, 2021, 3:18pm UTC](https://discuss.elastic.co/t/how-to-read-local0-info-and-local4-info-file-content-in-unix-server-using-filebeat-configuration/280000/2 "2021-07-29T15:18:07Z")

</div>

Hello,

In order to find easily files on linux you can use the command "find"

example here starting from root directory :

```auto
sudo find / -name "local0.info" 

```

once you have the path of the file you can forward them to logstash using filebeat on your UNIX servers simply deploy the filebeat package and configure something like

```auto
filebeat.inputs:

- type: log
  enabled: true
  paths:
    - "/path/local0.info" 

```

to configure filebeat please read the documentation :

> **[Filebeat quick start: installation and configuration | Filebeat Reference...](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation-configuration.html)**

---

<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 26, 2021, 3:18pm UTC](https://discuss.elastic.co/t/how-to-read-local0-info-and-local4-info-file-content-in-unix-server-using-filebeat-configuration/280000/3 "2021-08-26T15:18:31Z")

</div>

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