This is such a simple cisco command, and I debated about actually making a post for it, but I know I’ll forget the syntax when I need it. I hope it helps you too:
To search through any file, you use the “include” command. The logs also show quite a bit of detail about what happened and this is useful for finding if an ACL has blocked your connection attempt for example.
Show Logging

Searching the Show Log Command:
What happens if you only want to see something in particular, not 40 pages of text?
sh log | i whatever
Another Example
sh log | i 192.168.10
{ 0 comments… add one now }