# Read files and filebeat status

**URL:** <https://discuss.elastic.co/t/read-files-and-filebeat-status/140432>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 18, 2018, 3:51am UTC](https://discuss.elastic.co/t/read-files-and-filebeat-status/140432 "2018-07-18T03:51:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leexum](https://avatars.discourse-cdn.com/v4/letter/l/b77776/32.png) [@leexum](https://discuss.elastic.co/u/leexum)\
**Post date:** [July 18, 2018, 3:51am UTC](https://discuss.elastic.co/t/read-files-and-filebeat-status/140432/1 "2018-07-18T03:51:52Z")

</div>

I need to know the status of files and filebeat, like how many files are opening, how many harvesters are running, which file is closed because close\_eof is enable e.g. Is there any method to read message show in console?

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [July 18, 2018, 10:55pm UTC](https://discuss.elastic.co/t/read-files-and-filebeat-status/140432/2 "2018-07-18T22:55:18Z")

</div>

Have you tried `lsof` or similar? That can show you the number of in-use FDs for a process.

May I ask why you need that exact info?

---

<div class="post-metadata">

**Author:** ![leexum](https://avatars.discourse-cdn.com/v4/letter/l/b77776/32.png) [@leexum](https://discuss.elastic.co/u/leexum)\
**Post date:** [July 19, 2018, 1:19am UTC](https://discuss.elastic.co/t/read-files-and-filebeat-status/140432/3 "2018-07-19T01:19:20Z")

</div>

I am developing a project for uploading log files and analysing witk ELK. I upload all log files to my server by one time and use filebeat to collect the log messages to ELK. So I need to know when dose the collecting finish, and after that I can use Kibana to view it, which means I need a API to read collecting status. I think it is a high-frequent applying situation and it is very useful to know collecting status.

---

<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 16, 2018, 1:19am UTC](https://discuss.elastic.co/t/read-files-and-filebeat-status/140432/4 "2018-08-16T01:19:32Z")

</div>

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