# Filter dissect: mapping on double quotes

**URL:** <https://discuss.elastic.co/t/filter-dissect-mapping-on-double-quotes/67617>\
**Category:** Logstash\
**Created:** [November 30, 2016, 1:16pm UTC](https://discuss.elastic.co/t/filter-dissect-mapping-on-double-quotes/67617 "2016-11-30T13:16:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex22](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@alex22](https://discuss.elastic.co/u/alex22)\
**Post date:** [November 30, 2016, 1:16pm UTC](https://discuss.elastic.co/t/filter-dissect-mapping-on-double-quotes/67617/1 "2016-11-30T13:16:14Z")

</div>

Hi \*,

im currently trying to get along with the dissect filter.  
So i have the following example log which i try to parse with dissect:

```
"a b" 33 c

```

And my dissect mapping looks like this  
mapping =\> { "message" =\> ""%{f1}" %{f2} %{f3}" }

What i'm trying to do is to get everything between double quotes in one field (f1).  
Are double quotes valid to be used within the mapping part as a delimiter? If yes, how do i implement it?

Kind regards  
alex

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [December 5, 2016, 6:29am UTC](https://discuss.elastic.co/t/filter-dissect-mapping-on-double-quotes/67617/2 "2016-12-05T06:29:01Z")

</div>

I'm not familiar with the dissect filter, but perhaps you'll have better luck with this:

```
mapping => { "message" => '"%{f1}" %{f2} %{f3}' }
```

---

<div class="post-metadata">

**Author:** ![Charles.w](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charles.w/32/15486_2.png) [@Charles.w](https://discuss.elastic.co/u/Charles.w)\
**Post date:** [December 29, 2016, 12:56pm UTC](https://discuss.elastic.co/t/filter-dissect-mapping-on-double-quotes/67617/3 "2016-12-29T12:56:08Z")

</div>

Hi,

Had the same issue 😅 and using single quotes did the trick 😉

Best regards,

Charles.

---

<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:** [January 26, 2017, 12:56pm UTC](https://discuss.elastic.co/t/filter-dissect-mapping-on-double-quotes/67617/4 "2017-01-26T12:56:08Z")

</div>

Closed on January 26, 2017, 12:56pm UTC

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