Walt Longmire is a fictional character and the books are not based on real events. The setting of the book is a fictional county that is inspired by real places in Wyoming such as Buffalo.