# Logstash one to one mapping of two lines

**URL:** https://discuss.elastic.co/t/logstash-one-to-one-mapping-of-two-lines/274634
**Category:** Logstash
**Created:** [June 1, 2021, 1:17pm UTC](https://discuss.elastic.co/t/logstash-one-to-one-mapping-of-two-lines/274634 "2021-06-01T13:17:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Muhammad\_Faisal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muhammad_faisal/32/79213_2.png) [@Muhammad\_Faisal](https://discuss.elastic.co/u/Muhammad_Faisal)
#### Post date: [June 1, 2021, 1:17pm UTC](https://discuss.elastic.co/t/logstash-one-to-one-mapping-of-two-lines/274634/1 "2021-06-01T13:17:15Z")

</div>

hi guys,

how to do one to one mapping of below two lines - number of comma separated values in message and header fields can be dynamic but number of items in both fields will be same

```
 "message" => "error_count,10,20,30,50,60,70,80,90,110,110",

    "header" => "name,pl-3,pl-4,pl-5,pl-6,pl-7,pl-8,pl-9,pl-10,pl-1,pl-2"

```

ouput needed

name =\> error\_count  
pl-3 ==\>10  
pl-4==\>20

---

<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 29, 2021, 1:17pm UTC](https://discuss.elastic.co/t/logstash-one-to-one-mapping-of-two-lines/274634/2 "2021-06-29T13:17:56Z")

</div>

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