# Reindex From json File only specific log file path docs

**URL:** <https://discuss.elastic.co/t/reindex-from-json-file-only-specific-log-file-path-docs/336195>\
**Category:** Elasticsearch\
**Created:** [June 16, 2023, 8:00am UTC](https://discuss.elastic.co/t/reindex-from-json-file-only-specific-log-file-path-docs/336195 "2023-06-16T08:00:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bill210kouk](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@bill210kouk](https://discuss.elastic.co/u/bill210kouk)\
**Post date:** [June 16, 2023, 8:00am UTC](https://discuss.elastic.co/t/reindex-from-json-file-only-specific-log-file-path-docs/336195/1 "2023-06-16T08:00:12Z")

</div>

Good Morning I hope you're Alright.

I'm a newbie and i would like to ask something. I've made an export process with elasticdump and it was a success. I would like to ask . My end goal is to keep only valuable documents which derive from specific log file. The rest is junk.

The question is the following one. Is it possible to reindex from a dumped json file keeping only valuable files from a specific log file path to a new destination index?

Thanks in advance your help is more than valuable.

---

<div class="post-metadata">

**Author:** ![Lou003](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@Lou003](https://discuss.elastic.co/u/Lou003)\
**Post date:** [June 16, 2023, 2:17pm UTC](https://discuss.elastic.co/t/reindex-from-json-file-only-specific-log-file-path-docs/336195/2 "2023-06-16T14:17:56Z")

</div>

Hi!

Also a newbie here. Did you take a look at pipelines? They are capable of removing or dissecting fieldname. It is also usable to drop an document.

[drop pipeline](https://www.elastic.co/guide/en/elasticsearch/reference/current/drop-processor.html)  
[Dissect pipeline](https://www.elastic.co/guide/en/elasticsearch/reference/current/dissect-processor.html)  
[Remove pipeline](https://www.elastic.co/guide/en/elasticsearch/reference/current/remove-processor.html)

---

<div class="post-metadata">

**Author:** ![bill210kouk](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@bill210kouk](https://discuss.elastic.co/u/bill210kouk)\
**Post date:** [June 17, 2023, 9:43am UTC](https://discuss.elastic.co/t/reindex-from-json-file-only-specific-log-file-path-docs/336195/3 "2023-06-17T09:43:18Z")

</div>

Good Mornign Lou!

Imagine it this way. I've Got an index which i dumped . In order to Preserve space i dump indexes & delete them from my elastic. The dumps are json file which is made from elasticdump.  
Now i've got json dumps. I would like from all those dumps which are some TBs to be reindexed back from the json dump file only the valuable content which in case are the files from a specific log.file.path.

So now the question remains how will i be in posistion to reindex back only the valuable documents saving valuable TB of storage + perfomance.

Moreover reindex based on a specific field for example log.file.path can be achieved directly from elasticseaarch while indexes are open..but in my case in order to avoid floods i run back to dumps.

Hope that i gave you a more detailed approach.  
Im here to discuss anything you might have questions for..

Bill!

---

<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 15, 2023, 9:44am UTC](https://discuss.elastic.co/t/reindex-from-json-file-only-specific-log-file-path-docs/336195/4 "2023-07-15T09:44:11Z")

</div>

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