# Codec only support first pipeline

**URL:** <https://discuss.elastic.co/t/codec-only-support-first-pipeline/133435>\
**Category:** Logstash\
**Created:** [May 28, 2018, 1:58am UTC](https://discuss.elastic.co/t/codec-only-support-first-pipeline/133435 "2018-05-28T01:58:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wanglifeng](https://avatars.discourse-cdn.com/v4/letter/w/7ba0ec/32.png) [@wanglifeng](https://discuss.elastic.co/u/wanglifeng)\
**Post date:** [May 28, 2018, 1:58am UTC](https://discuss.elastic.co/t/codec-only-support-first-pipeline/133435/1 "2018-05-28T01:58:33Z")

</div>

I tried to use multi-pipeline to do log collection, parse and output kafka, But the log's encoding are different (i.e: UTF-8 GBK etc).

i tried use pipeline.yml to setup several log inputs and listening 514, 515 udp ports. by defaults, 514 is for utf-8, 515 is for GBK... and i got many parser failure in logstash log, the log said it expect the log encoding is UTF-8.

- pipeline.id: p514  
pipeline.workers: 1  
pipeline.batch.size: 1  
config.string: "input { syslog{port=\>514}} output { stdout { } }"
- pipeline.id: p515  
queue.type: persisted  
pipeline.workers: 1  
pipeline.batch.size: 1  
config.string: "input { syslog{port=\>515 codec=\>plain {charset =\> 'GBK'}}} output{stdout{}}"

and i change the 514/515 order, seems below, it worked after ran again.

- pipeline.id: p515  
queue.type: persisted  
pipeline.workers: 1  
pipeline.batch.size: 1  
config.string: "input { syslog{port=\>515 codec=\>plain {charset =\> 'GBK'}}} output{stdout{}}"
- pipeline.id: p514  
pipeline.workers: 1  
pipeline.batch.size: 1  
config.string: "input { syslog{port=\>514}} output { stdout { } }"

so i guess the codec only support first pipeline, isn't it?

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [May 29, 2018, 1:25pm UTC](https://discuss.elastic.co/t/codec-only-support-first-pipeline/133435/2 "2018-05-29T13:25:45Z")

</div>

Well that should not happen.

What version of Logstash are you using?

---

<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:** [June 26, 2018, 1:25pm UTC](https://discuss.elastic.co/t/codec-only-support-first-pipeline/133435/3 "2018-06-26T13:25:46Z")

</div>

Closed on June 26, 2018, 1:25pm UTC

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