# Help using logstash dissect filtering

**URL:** <https://discuss.elastic.co/t/help-using-logstash-dissect-filtering/181852>\
**Category:** Logstash\
**Created:** [May 20, 2019, 2:36pm UTC](https://discuss.elastic.co/t/help-using-logstash-dissect-filtering/181852 "2019-05-20T14:36:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![retroisbest](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@retroisbest](https://discuss.elastic.co/u/retroisbest)\
**Post date:** [May 20, 2019, 2:36pm UTC](https://discuss.elastic.co/t/help-using-logstash-dissect-filtering/181852/1 "2019-05-20T14:36:32Z")

</div>

Hi there,  
I'm trying to map my fields using dissect, my data has no common delimiter apart from spaces.

My filter section in logstash config looks like this

> ```
> if [type] == "syslog"
> {
> dissect {
> mapping => {
> "message" => "%{IP_Address->} %{LMonth} %{LDay} %{LTime} %{Host_Name} %{Facility} %{Priority} %{Tag} %{Message}"
> }
> } 
> }
> 
> ```

Yet my mapped fields contain data that should of been split

> 192.168.2.1 May 20 15:29:44 kern warning kernel DROP\_INPUT IN=red0 OUT= MAC=d4:ae:52:a0:84:fb:00:57:d2:79:93:c2:08:00 SRC=xx.xx.xx.xx DST=xx.xx.xx.xx LEN=443 TOS=0x00 PREC=0x00 TTL=48 ID=34493 DF PROTO=UDP SPT=5077 DPT=1023 LEN=423

So my IP\_Address field contains **"192.168.2.1 May"** This is the same then for the fields that follow.

Any help you be greatly appreciated!  
Thankyou

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 20, 2019, 4:35pm UTC](https://discuss.elastic.co/t/help-using-logstash-dissect-filtering/181852/2 "2019-05-20T16:35:17Z")

</div>

Is the separator between the IP address and the month actually a tab rather than a space?

---

<div class="post-metadata">

**Author:** ![retroisbest](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@retroisbest](https://discuss.elastic.co/u/retroisbest)\
**Post date:** [May 21, 2019, 7:27am UTC](https://discuss.elastic.co/t/help-using-logstash-dissect-filtering/181852/3 "2019-05-21T07:27:33Z")

</div>

Yes it is...it seems to be a space and a tab after some fields, can i use a literal tab or is there a character to be used?

For future reference its a literal tab, thanks for pointing me in the right way @Badger

---

<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 18, 2019, 7:41am UTC](https://discuss.elastic.co/t/help-using-logstash-dissect-filtering/181852/4 "2019-06-18T07:41:31Z")

</div>

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