If any injury to the person or property of another is caused by a sheriff or any deputy sheriff, while the sheriff or deputy is engaged in the performance of his or her duties as such, and without the contributory negligence of the injured person or the owner of the injured property, or the agent or servant of the injured person or owner, the county shall indemnify the sheriff or deputy, as the case may be, for any judgment recovered against him or her as the result of that injury, except where the injury results from the wilful misconduct of the sheriff or deputy, as the case may be, to the extent of not to exceed $1,000,000, including costs of action. Any sheriff or deputy, as the case may be, or any person who, at the time of performing such an act complained of, was a sheriff or deputy sheriff, who is made a party defendant to any such action shall, within 10 days of service of process upon him or her, notify the county, of the fact that the action has been instituted, and that he or she has been made a party defendant to the action. The notice must be in writing, and be filed in the office of the State's Attorney and also in the office of the county clerk, either by himself or herself, his or her agent or attorney. The notice shall state in substance, that the sheriff or deputy sheriff, as the case may be, (naming him or her), has been served with process and made a party defendant to an action wherein it is claimed that a person has suffered injury to his or her person or property caused by that sheriff or deputy sheriff stating the title and number of the case; the Court wherein the action is pending; and the date the sheriff or deputy sheriff was served with process in the action, and made a party defendant thereto. The county which is or may be liable to indemnify the sheriff or deputy sheriff, as the case may be, may intervene in the action against the sheriff or deputy sheriff, as the case may be, and shall be permitted to appear and defend. The duty of the county to indemnify any sheriff or deputy sheriff for any judgment recovered against him or her is conditioned upon receiving notice of the filing of any such action in the manner and form hereinabove described.
55 ILCS 5/5-1002