Metricbeat-7.16.2 HTTP error 401 in : 401 Unauthorized

Resolved....just needed to add credentials to all modules.