If you want to extract only deadlock details, use the script.
2016-10-24 (first published: 2014-12-03)
Receive Deadlock info from the SQL Error Log every time a deadlock occurs.
2014-01-03 (first published: 2010-12-13)
View information about the deadlocks captured to a trace file.
2013-07-22 (first published: 2009-04-30)