Export ERROR LOGS

I want to export the only error logs from Elasticsreach to Email.How Can I do it?