# Log DELETE commands from DevTools?

**URL:** <https://discuss.elastic.co/t/log-delete-commands-from-devtools/191213>\
**Category:** Elasticsearch\
**Created:** [July 18, 2019, 1:59pm UTC](https://discuss.elastic.co/t/log-delete-commands-from-devtools/191213 "2019-07-18T13:59:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdberts](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@sdberts](https://discuss.elastic.co/u/sdberts)\
**Post date:** [July 18, 2019, 1:59pm UTC](https://discuss.elastic.co/t/log-delete-commands-from-devtools/191213/1 "2019-07-18T13:59:31Z")

</div>

I have a use case where I need to log when a user runs the DELETE REST command from DevTools to delete an index. Ideally, I'd want to store username, timestamp, and the command that was run. Does Elasticsearch or Kibana (with X-Pack) have this functionality built in, or would I need to look into building something custom?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 18, 2019, 3:00pm UTC](https://discuss.elastic.co/t/log-delete-commands-from-devtools/191213/2 "2019-07-18T15:00:31Z")

</div>

RI think that [audit logging](https://www.elastic.co/guide/en/elasticsearch/reference/current/auditing-settings.html) can do that. It's under a commercial license AFAIK.

---

<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:** [August 15, 2019, 3:13pm UTC](https://discuss.elastic.co/t/log-delete-commands-from-devtools/191213/3 "2019-08-15T15:13:41Z")

</div>

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