This is not possible today but there is an enhancement request open for it in the Beats GitHub repository: https://github.com/elastic/beats/issues/22619. If you have a GitHub account, I would suggest commenting on that issue with your use case so it gets more visibility.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.