# Retrieve Deleted Log File from Hadoop with ElasticSearch

**URL:** <https://discuss.elastic.co/t/retrieve-deleted-log-file-from-hadoop-with-elasticsearch/45007>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [March 21, 2016, 3:09pm UTC](https://discuss.elastic.co/t/retrieve-deleted-log-file-from-hadoop-with-elasticsearch/45007 "2016-03-21T15:09:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsronald](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@gsronald](https://discuss.elastic.co/u/gsronald)\
**Post date:** [March 21, 2016, 3:09pm UTC](https://discuss.elastic.co/t/retrieve-deleted-log-file-from-hadoop-with-elasticsearch/45007/1 "2016-03-21T15:09:11Z")

</div>

Dear all gens,

I am doing the product evaluation about Elasticsearch with Hadoop.

I would like to know that if I stored some log files in HDFS. when somebody deleted, by external hacker or internal stupid guy.

Any capability can retrieve it and back to the original folder?

Please advise.

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [April 5, 2016, 2:16pm UTC](https://discuss.elastic.co/t/retrieve-deleted-log-file-from-hadoop-with-elasticsearch/45007/2 "2016-04-05T14:16:39Z")

</div>

This has nothing to do with Elasticsearch. If somebody deletes content from HDFS you either need to use backup or potentially some type of recycle/thrash capability (though I'm not aware of any such type of functionality).

---

<div class="post-metadata">

**Author:** ![gsronald](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@gsronald](https://discuss.elastic.co/u/gsronald)\
**Post date:** [April 5, 2016, 3:51pm UTC](https://discuss.elastic.co/t/retrieve-deleted-log-file-from-hadoop-with-elasticsearch/45007/3 "2016-04-05T15:51:26Z")

</div>

So only trash can do it? Then how to fully utilize the feature about Hadoop append mode file system?

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [April 5, 2016, 4:16pm UTC](https://discuss.elastic.co/t/retrieve-deleted-log-file-from-hadoop-with-elasticsearch/45007/4 "2016-04-05T16:16:32Z")

</div>

Since this is a HDFS specific problem, it's best to take a look at the HDFS/your Hadoop distro documentation for more information.

---

<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 6, 2017, 1:25pm UTC](https://discuss.elastic.co/t/retrieve-deleted-log-file-from-hadoop-with-elasticsearch/45007/5 "2017-07-06T13:25:21Z")

</div>


