DAG in spark History Server

I am not able to see DAG in the history server. Please advise. Also, why these logs are not appearing in http://f.cloudxlab.com:4040. If run spark code in spark REPL, I can get the logs in http://f.cloudxlab.com:4040 but If I do spark-submit, logs can be seen only in history server only. Why so?