I bought a 2010 Legacy back in August. I'm a big fan of the car, but lately I've been having an issue where my car "coughs" alot prior to starting, and it sometimes takes over a minute, with repeated efforts, for the car to start. When this issue happens, the dashboard repeatedly blinks, and occasionally the clock in the car resets to 12:00. Other things I've noticed alongside this problem is that the blue light on the bottom left of the dashboard is usually on, and it's particularly troublesome on cold mornings. Lately, it hasn't been as bad but I get the feeling that whatever the underlying problem is hasn't gone away.
Below is a video illustrating the problems I've been having:
I'm not particularly knowledgeable about cars to begin with, and figured this would be a good place to get an idea of what might be the trouble.
Any help would be greatly appreciated, thanks.