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

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

Why do you want to use filebeat for that?
Anyway this might be useful (may be)
