# Logstash pipeline에 복수개의 conf가 있는 경우 여러 인덱스에 모두 쌓이는 현상

**URL:** <https://discuss.elastic.co/t/logstash-pipeline-conf/225550>\
**Category:** 한국어 질문 및 토론\
**Created:** [March 29, 2020, 12:47pm UTC](https://discuss.elastic.co/t/logstash-pipeline-conf/225550 "2020-03-29T12:47:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deep2eye](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deep2eye/32/42767_2.png) [@deep2eye](https://discuss.elastic.co/u/deep2eye)\
**Post date:** [March 29, 2020, 12:47pm UTC](https://discuss.elastic.co/t/logstash-pipeline-conf/225550/1 "2020-03-29T12:47:48Z")

</div>

안녕하세요.  
logstash에 아래와 같이 복수개의 설정을 등록하고 AAAA.json에 데이터를 넣으면 AAAA 인덱스와 BBBB 인덱스 모두에게 AAAA.json 데이터가 쌓입니다.  
왜 이런걸까요?

[pipelines.yml]

```auto
- pipeline.id: AAAA
  path.config: "/etc/logstash/conf.d/AAAA.conf"
  queue.type: persisted
- pipeline.id: BBBB
  path.config: "/etc/logstash/conf.d/BBBB.conf"
  queue.type: persisted

```

[AAAA.conf]

```auto
input {
    stdin {
        codec => json
    }
    file {
        codec => json
        path => "AAAA.json"
        start_position => "beginning"
        sincedb_path => "NUL"
    }
}

output {
    elasticsearch {
        hosts => "localhost"
        index => "AAAA"
    }
    stdout {}
}

```

[BBBB.conf]

```auto
input {
    stdin {
        codec => json
    }
    file {
        codec => json
        path => "BBBB.json"
        start_position => "beginning"
        sincedb_path => "NUL"
    }
}

output {
    elasticsearch {
        hosts => "localhost"
        index => "BBBB"
    }
    stdout {}
}

```

---

<div class="post-metadata">

**Author:** ![kimjmin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimjmin/32/15223_2.png) [@kimjmin](https://discuss.elastic.co/u/kimjmin)\
**Post date:** [April 7, 2020, 1:18am UTC](https://discuss.elastic.co/t/logstash-pipeline-conf/225550/2 "2020-04-07T01:18:38Z")

</div>

stdin 은 특별히 하신 이유가 있으신건가요?

보통은 구분되어 쌓이는게 맞습니다. persistent queue 에서 꼬인 것일지도 모르겠는데 그럼 로그스태시 버그일 수 있겠네요.

---

<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 5, 2020, 1:18am UTC](https://discuss.elastic.co/t/logstash-pipeline-conf/225550/3 "2020-05-05T01:18:41Z")

</div>

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