Is there any way to grep any value from asterisk CLI?
Not inside the cli, but you can enable the full log force tail and grep it
Can you please share me the command?
Assuming you've enabled the full log and you are in your home directory:
tail -f /var/log/asterisk/full | grep "stringtosearch"
Thanks. I've enabled full log form "logger.conf" file.
full => notice,warning,error,debug,verbose,dtmf,fax
Here I'm not getting the full log to till hangup. Any help?
Told you tail not cat, tail -f show every single new line added to the log file.
First I have tailed the log. Later I just print the log by cat. Thanks for helping me out. I got the process at-least.