You cannot export Teams data logs.
For more information, please refer to “On the files posted or uploaded to Teams, OneDrive for Business, or SharePoint by those who graduated, completed or retired”.