If you wish to search for a certain string in Asterisk only (Example: only show carrier congestion), launch the Asterisk CLI along with the grep command, i.e.:
asterisk -rvvvvv | egrep -i “string”
Example (showing only congestion notices / errors)
asterisk -rvvvvv | egrep -i “congested”