The undertaking must be filed by the magistrate in the office of the Clerk of the county.
Ca. Pen. Code § 709