# Logstash 子indexの同期について

**URL:** <https://discuss.elastic.co/t/logstash-index/201581>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [September 30, 2019, 6:56am UTC](https://discuss.elastic.co/t/logstash-index/201581 "2019-09-30T06:56:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111218](https://avatars.discourse-cdn.com/v4/letter/1/9dc877/32.png) [@111218](https://discuss.elastic.co/u/111218)\
**Post date:** [September 30, 2019, 6:56am UTC](https://discuss.elastic.co/t/logstash-index/201581/1 "2019-09-30T06:56:30Z")

</div>

こんにちは。

このような構成のindexがあるとします。  
indexBはindexAを親に持ちます。

indexAーindexB

この場合、indexBのみ多少の更新があった場合、差分を検出し同期することは可能でしょうか。  
またその際にindexAのデータが消えてしまうような事は起こり得ますでしょうか。

環境は以下の通りです。

・JDK 1.8.9  
・Elasticsearch 7.3  
・Logstash 5.4  
・Kibana 7.3.1

以上よろしくお願いします。

---

<div class="post-metadata">

**Author:** ![johtani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johtani/32/44956_2.png) [@johtani](https://discuss.elastic.co/u/johtani)\
**Post date:** [October 4, 2019, 2:30am UTC](https://discuss.elastic.co/t/logstash-index/201581/2 "2019-10-04T02:30:42Z")

</div>

はじめまして。

親子関係と言われているのは[joinタイプ](https://www.elastic.co/guide/en/elasticsearch/reference/current/parent-join.html)でしょうか？  
Elasticsearchのjoinタイプは、検索時の関連を定義しているだけですので、  
データを削除した場合に他のデータに影響を与えることはありません。

> 「差分を検出し同期する」

ここはいまいち質問の内容がよくわかりませんでした。  
もう少し詳しく説明していただくと回答ができるのかなと。

---

<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:** [November 1, 2019, 2:30am UTC](https://discuss.elastic.co/t/logstash-index/201581/3 "2019-11-01T02:30:43Z")

</div>

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