Zabbix 4.0 has real-time data export feature. The ExportDir can be used to enable it.
There is no way to configure what exactly to export. Zabbix will export all (problems, history and trends) or nothing. What if I need to export problems only?
It is not efficient and may create useless load on the file system and Zabbix processes.