Before commencing to carry out the duties of their office, jailers must give to the sheriff a bond and surety for the sum of $1,000.00, conditioned for the faithful performance of their duties as jailers, and shall take and subscribe before the sheriff of their respective counties, to be filed in and entered into the records of the sheriff's office, the following oath: