# Is there a log to record the change in the cluster?

**URL:** <https://discuss.elastic.co/t/is-there-a-log-to-record-the-change-in-the-cluster/81927>\
**Category:** Elasticsearch\
**Created:** [April 11, 2017, 7:26am UTC](https://discuss.elastic.co/t/is-there-a-log-to-record-the-change-in-the-cluster/81927 "2017-04-11T07:26:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![weibin.wu](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@weibin.wu](https://discuss.elastic.co/u/weibin.wu)\
**Post date:** [April 11, 2017, 7:26am UTC](https://discuss.elastic.co/t/is-there-a-log-to-record-the-change-in-the-cluster/81927/1 "2017-04-11T07:26:23Z")

</div>

Hi Elasticsearch,

Is there any log in the cluster that I can check for previous operations?  
For example like someone accidently delete a document in my cluster. And I would like to find out which document had been deleted. Or what command was accepted by the cluster so that I can revert the change.

I know there is translog in each node. But seems like translog is not permanently existed on the disk. Please advice.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 11, 2017, 7:36am UTC](https://discuss.elastic.co/t/is-there-a-log-to-record-the-change-in-the-cluster/81927/2 "2017-04-11T07:36:45Z")

</div>

I think you'd need to turn on debug level logging for that sort of thing?

---

<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:** [April 11, 2017, 7:39am UTC](https://discuss.elastic.co/t/is-there-a-log-to-record-the-change-in-the-cluster/81927/3 "2017-04-11T07:39:38Z")

</div>

X-pack security (commercial) can do audit logging in cas it helps.

---

<div class="post-metadata">

**Author:** ![weibin.wu](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@weibin.wu](https://discuss.elastic.co/u/weibin.wu)\
**Post date:** [April 11, 2017, 8:29am UTC](https://discuss.elastic.co/t/is-there-a-log-to-record-the-change-in-the-cluster/81927/4 "2017-04-11T08:29:27Z")

</div>

Thanks, are we able to open the audit log for the shield in Elastic Cloud?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 11, 2017, 9:55am UTC](https://discuss.elastic.co/t/is-there-a-log-to-record-the-change-in-the-cluster/81927/5 "2017-04-11T09:55:16Z")

</div>

No, that isn't possible at this stage.

---

<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:** [May 9, 2017, 10:05am UTC](https://discuss.elastic.co/t/is-there-a-log-to-record-the-change-in-the-cluster/81927/6 "2017-05-09T10:05:57Z")

</div>

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