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