# Mappingがマージされてしまう件

**URL:** <https://discuss.elastic.co/t/mapping/93710>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [July 19, 2017, 7:49am UTC](https://discuss.elastic.co/t/mapping/93710 "2017-07-19T07:49:01Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [July 24, 2017, 2:28am UTC](https://discuss.elastic.co/t/mapping/93710/9 "2017-07-24T02:28:13Z")

</div>

あー、なるほど。  
(A-3)にかんしては、Elasticsearchのデフォルトになります。

> **[Mapping changes | Elasticsearch Reference \[5.5\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/breaking_50_mapping_changes.html#_default_string_mappings)**

あと、A-1のtemplate\_nameはA-2のmysql-statusにしないときちんと動かないと思いますが。。。

混ざる点に関してはおそらく、grokにもifを書くべきかと。  
Logstash内部としては1つの設定(1つのPipeline)になりますので、それぞれのログを読み込んだ後に、2つのgrokが動いているはずです。

参考：

> [@Running multiple independent logstash config files with input,filter and output](https://discuss.elastic.co/t/running-multiple-independent-logstash-config-files-with-input-filter-and-output/29757):
>
> Hi, We have multiple applications running on a single server and we are collecting the logs from these application and sending it to a intermediate queues using logstash forwarders. As, the log formats, processing and the output queues were different for different applications logs, I prepared multiple config files which are complete in themselves i.e. each config file has the input, filter and output section. what is the best way to start all the configs, logstash -f /configDirPath is givi…

---

_[View the full topic](https://discuss.elastic.co/t/mapping/93710)._
