I am not able see the logs attached to the tasks from the Airflow UI:
Log related settings in airflow.cfg file are:
remote_base_log_folder =
I also faced the same problem.
Setting below variables in airflow.cfg worked for me. Use {hostname} as machine's FQDN {hostname} instead of localhost.
airflow.cfg
{hostname}
FQDN {hostname}
endpoint_url = http://{hostname}:8080 base_url = http://{hostname}:8080
Best of luck!