Our requirement is just to get file metadata (file names, createdDate, lastmodified etc) from a path.
We have a directory where all the stdout and stderr files are being stored for different jobs. We just want to log those file details in one elasticsearch index. We don't want to write message (file content), as we are already writing it into different index.