The undertaking must be filed by the magistrate in the office of the Clerk of the county.
Cal. Penal Code § 709
Security to Keep the Peace
Enacted 1872.
Official source: California Legislative Information. Reproduced from public-domain California statutes; confirm against the official source for the current text. Not legal advice.