Police dog Kane collapsed after chasing two men for more than three kilometres. Credit:NSW Police

A devoted police dog who tracked and chased two men through bushland for kilometres after an alleged break and enter is spending his Sunday recovering at a vet.

Two men, aged 20 and 27, allegedly attempted to climb through an elderly man's window while he was at home in Adamstown Heights, Newcastle, at 11.30pm on Saturday.

Officers established a crime scene at the home of the 84-year-old, on Stayton Street, bringing along police dog Kane for assistance.

The German shepherd and his handler tracked and chased the two men who had fled through nearby bushland for more than three kilometres.