i am in the need of exporting message stats for our exchange online users for minimum 6 months.
Message stats for incoming email/user and outgoing emails/user along with message size.
Kindly please guide how do i go on this?
You cannot get stats for messages that far back. But you can periodically export them using for example this script: https://gallery.technet.microsoft.com/office/Office-365-Mail-Traffic-afa37da1