# How to read only filenames in filbeat without reading log file content

**URL:** <https://discuss.elastic.co/t/how-to-read-only-filenames-in-filbeat-without-reading-log-file-content/186139>\
**Category:** Elasticsearch\
**Created:** [June 17, 2019, 6:48pm UTC](https://discuss.elastic.co/t/how-to-read-only-filenames-in-filbeat-without-reading-log-file-content/186139 "2019-06-17T18:48:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nagarjun4](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nagarjun4/32/48243_2.png) [@Nagarjun4](https://discuss.elastic.co/u/Nagarjun4)\
**Post date:** [June 17, 2019, 6:48pm UTC](https://discuss.elastic.co/t/how-to-read-only-filenames-in-filbeat-without-reading-log-file-content/186139/1 "2019-06-17T18:48:50Z")

</div>

Someone help me in understanding ,how to read log file names without reading file content in file beat.  
Thanks in advance..

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 17, 2019, 8:13pm UTC](https://discuss.elastic.co/t/how-to-read-only-filenames-in-filbeat-without-reading-log-file-content/186139/2 "2019-06-17T20:13:32Z")

</div>

Why do you want to use filebeat for that?  
Anyway this might be useful (may be) [http://david.pilato.fr/blog/2015/12/10/building-a-directory-map-with-elk/](http://david.pilato.fr/blog/2015/12/10/building-a-directory-map-with-elk/)

---

<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:** [July 15, 2019, 8:13pm UTC](https://discuss.elastic.co/t/how-to-read-only-filenames-in-filbeat-without-reading-log-file-content/186139/3 "2019-07-15T20:13:34Z")

</div>

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