Lately and sporadically my '10 legacy Ltd is hard to start. It will crank and the battery light on the dash will flicker but it will not start. usually after I turn the key to off and then turn it back on it will catch and everything seems fine. However it is starting to happen more lately. I 'm not sure the dealership would be able to recreate it but am thinking it must be storing a code. The car has 21,000 miles. The engine about 2000 (don't ask replaced free by the dealer).
Does anyone have any suggestions or had this problem? Not trusting this car lately. Last night it took 4 or 5 tries to get it going after it had been warmed up then stopped for gas.