# Asterisk CLI grep command

**URL:** <https://community.asterisk.org/t/asterisk-cli-grep-command/71356>\
**Category:** Asterisk Support\
**Created:** [July 15, 2017, 2:41pm UTC](https://community.asterisk.org/t/asterisk-cli-grep-command/71356 "2017-07-15T14:41:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rezuan\_cse](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@rezuan\_cse](https://community.asterisk.org/u/rezuan_cse)\
**Post date:** [July 15, 2017, 2:41pm UTC](https://community.asterisk.org/t/asterisk-cli-grep-command/71356/1 "2017-07-15T14:41:56Z")

</div>

Is there any way to grep any value from asterisk CLI?

---

<div class="post-metadata">

**Author:** ![navaismo](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/navaismo/32/2481_2.png) [@navaismo](https://community.asterisk.org/u/navaismo)\
**Post date:** [July 15, 2017, 2:43pm UTC](https://community.asterisk.org/t/asterisk-cli-grep-command/71356/2 "2017-07-15T14:43:07Z")

</div>

Not inside the cli, but you can enable the full log force tail and grep it

---

<div class="post-metadata">

**Author:** ![rezuan\_cse](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@rezuan\_cse](https://community.asterisk.org/u/rezuan_cse)\
**Post date:** [July 15, 2017, 2:47pm UTC](https://community.asterisk.org/t/asterisk-cli-grep-command/71356/3 "2017-07-15T14:47:53Z")

</div>

Can you please share me the command?

---

<div class="post-metadata">

**Author:** ![navaismo](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/navaismo/32/2481_2.png) [@navaismo](https://community.asterisk.org/u/navaismo)\
**Post date:** [July 15, 2017, 3:02pm UTC](https://community.asterisk.org/t/asterisk-cli-grep-command/71356/4 "2017-07-15T15:02:15Z")

</div>

Assuming you’ve enabled the full log and you are in your home directory:

```auto

```

---

<div class="post-metadata">

**Author:** ![rezuan\_cse](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@rezuan\_cse](https://community.asterisk.org/u/rezuan_cse)\
**Post date:** [July 15, 2017, 3:15pm UTC](https://community.asterisk.org/t/asterisk-cli-grep-command/71356/5 "2017-07-15T15:15:09Z")

</div>

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?

 ![](https://global.discourse-cdn.com/asterisk/original/2X/3/3895931c6b56fc74c462f08f9fc4653ecd29da71.PNG)

---

<div class="post-metadata">

**Author:** ![navaismo](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/navaismo/32/2481_2.png) [@navaismo](https://community.asterisk.org/u/navaismo)\
**Post date:** [July 15, 2017, 3:33pm UTC](https://community.asterisk.org/t/asterisk-cli-grep-command/71356/6 "2017-07-15T15:33:07Z")

</div>

Told you tail not cat, tail -f show every single new line added to the log file.

---

<div class="post-metadata">

**Author:** ![rezuan\_cse](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@rezuan\_cse](https://community.asterisk.org/u/rezuan_cse)\
**Post date:** [July 15, 2017, 3:35pm UTC](https://community.asterisk.org/t/asterisk-cli-grep-command/71356/7 "2017-07-15T15:35:51Z")

</div>

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. 🙂
