# Splitting message log

**URL:** https://discuss.elastic.co/t/splitting-message-log/296805
**Category:** Logstash
**Created:** [February 10, 2022, 7:07am UTC](https://discuss.elastic.co/t/splitting-message-log/296805 "2022-02-10T07:07:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![wizard](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@wizard](https://discuss.elastic.co/u/wizard)
#### Post date: [February 10, 2022, 7:07am UTC](https://discuss.elastic.co/t/splitting-message-log/296805/1 "2022-02-10T07:07:02Z")

</div>

Hello,

When I am collecting logs from Syslog and transferring those logs to kibana using filebeat, I am getting a tab named by message in row format as below mention:

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/8/9/896f92f93345283b824d43fb182ee05f1a4f0607.png)

I want this to be in a separate field like below mention so I can create the dashboard.

\_gateway date=2022-01-07  
time=02:43:13  
devname="AXYY"  
devid="FG201ETK19901061"  
logid="00000"  
type="traffic"  
subtype="forward"  
level="notice"  
vd="root"  
eventtime=1648272  
tz="+0800"  
srcip=192.168.12.12  
srcname="XY"

Is there any way to split these logs?

---

<div class="post-metadata">

### Author: ![grumo35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grumo35/32/59451_2.png) [@grumo35](https://discuss.elastic.co/u/grumo35)
#### Post date: [February 10, 2022, 8:35am UTC](https://discuss.elastic.co/t/splitting-message-log/296805/2 "2022-02-10T08:35:30Z")

</div>

Hey !

You can surely use the KV filter plugin consider you dont use logstash you might want to setup an Elasticsearch ingest pipeline with filter processor like

```auto
{
  "kv": {
    "field": "message",
    "field_split": " ",
    "value_split": "="
  }
}

```

> **[KV processor | Elasticsearch Guide \[7.17\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/kv-processor.html)**

---

<div class="post-metadata">

### Author: ![wizard](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@wizard](https://discuss.elastic.co/u/wizard)
#### Post date: [February 10, 2022, 10:49am UTC](https://discuss.elastic.co/t/splitting-message-log/296805/3 "2022-02-10T10:49:51Z")

</div>

Everything is working fine except the field split, I m not able to add whitespce in field\_split. Please see the below mention screenshot. Can you please look into this and confirm what possible action I can perform?

![image](https://us1.discourse-cdn.com/elastic/original/3X/2/c/2c6e533cc474a64e26b096fad2c4d5442e8bc0fb.png)

---

<div class="post-metadata">

### Author: ![grumo35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grumo35/32/59451_2.png) [@grumo35](https://discuss.elastic.co/u/grumo35)
#### Post date: [February 25, 2022, 3:04pm UTC](https://discuss.elastic.co/t/splitting-message-log/296805/4 "2022-02-25T15:04:17Z")

</div>

Hey,

I think you should read the bottom of your screenshot, as it is told a space it typically enclosed in " "

---

<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: [March 25, 2022, 3:05pm UTC](https://discuss.elastic.co/t/splitting-message-log/296805/5 "2022-03-25T15:05:05Z")

</div>

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