Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
If I read your requirement correctly, use the "| incl string" as a suffix to your show log command. Similar to unix grep, lets you display lines that include "string"