Killcam Behavior

I’m trying to implement a Kill cam that records the last n seconds leading up to a kill event in the ShooterGame. Is there an easy way to record gameplay like this in UE4, and if so how would one set it up?