Is there any way to reduce the size of data before indexing into elasticserch

Thank you for quick reply. Let me have a look.
By the way, is it possible to accomplish the same thing on filebeat to reduce the network loading?