# Mapping two string values or create kv pair

**URL:** https://discuss.elastic.co/t/mapping-two-string-values-or-create-kv-pair/273518
**Category:** Logstash
**Created:** [May 20, 2021, 11:38am UTC](https://discuss.elastic.co/t/mapping-two-string-values-or-create-kv-pair/273518 "2021-05-20T11:38:28Z")
**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: [May 20, 2021, 11:38am UTC](https://discuss.elastic.co/t/mapping-two-string-values-or-create-kv-pair/273518/1 "2021-05-20T11:38:28Z")

</div>

my current pipeline in logstash after running on input log data is producing below output , i need to map it one to one..or create kv such as ..

pl-3: 361  
pl-4: 366

etc....

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

`"message2" => "counter.delta 361 366 362 373 370 365 365 368 365 359"`

---

<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 17, 2021, 11:39am UTC](https://discuss.elastic.co/t/mapping-two-string-values-or-create-kv-pair/273518/2 "2021-06-17T11:39:08Z")

</div>

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