The pmlogsearch --text option will search the argv and runargv event variables as well as the STDIN, STDOUT, and STDERR streams from the iolog file.
NOTE: You must enter the keyword or phrase as one argument. If the phrase contains a space, enclose the whole phrase in quotes.
# pmlogsearch --text "my phrase"
matches any log containing the string "my phrase".
# pmlogsearch --text phone
matches logs containing any word with the substring phone (such
as, telephone, headphones, phones), or the complete word