What is the highest military ranked animal in history?

That would be the dog. They are used for a lot of things like that and some are trained for the k-9 cop section.