# Auditbeat Log all command not just \`sudo \<cmd\>\`

**URL:** <https://discuss.elastic.co/t/auditbeat-log-all-command-not-just-sudo-cmd/238640>\
**Category:** Beats\
**Tags:** auditbeat\
**Created:** [June 25, 2020, 10:21am UTC](https://discuss.elastic.co/t/auditbeat-log-all-command-not-just-sudo-cmd/238640 "2020-06-25T10:21:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![esseti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/esseti/32/8383_2.png) [@esseti](https://discuss.elastic.co/u/esseti)\
**Post date:** [June 25, 2020, 10:21am UTC](https://discuss.elastic.co/t/auditbeat-log-all-command-not-just-sudo-cmd/238640/1 "2020-06-25T10:21:44Z")

</div>

Hello,

I've setup the audit beat and it intercepts the commands that have `sudo` in front. however, it does not log the command from normal users and neither for root user.  
so that, if I do `sudo su` there's no log of command, and neither for my user.  
is it possible to enable it? how so?

i've tried this [Log All User's Shell Activity](https://discuss.elastic.co/t/log-all-users-shell-activity/144982) but without luck

any help?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 23, 2020, 12:21pm UTC](https://discuss.elastic.co/t/auditbeat-log-all-command-not-just-sudo-cmd/238640/2 "2020-07-23T12:21:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
