# Unable concatenate multiple fields which is collected by metricbeat

**URL:** https://discuss.elastic.co/t/unable-concatenate-multiple-fields-which-is-collected-by-metricbeat/100744
**Category:** Beats
**Tags:** metricbeat
**Created:** [September 16, 2017, 3:11am UTC](https://discuss.elastic.co/t/unable-concatenate-multiple-fields-which-is-collected-by-metricbeat/100744 "2017-09-16T03:11:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nikhil\_Jaiswal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikhil_jaiswal/32/39326_2.png) [@Nikhil\_Jaiswal](https://discuss.elastic.co/u/Nikhil_Jaiswal)
#### Post date: [September 16, 2017, 3:11am UTC](https://discuss.elastic.co/t/unable-concatenate-multiple-fields-which-is-collected-by-metricbeat/100744/1 "2017-09-16T03:11:17Z")

</div>

Hi,

I want to concatenate some fields in logstash using mutate and storing in **message** , but message filed is coming in logstash(after running in powershell , i am not able to see) this is my configuration-

```
else if [metricset] =~ /.+/ {  
					
grok {
match => ["message1", "%{GREEDYDATA}"]
						    }
mutate {
remove_field => ["tags"]
										
				
					add_field => ["engine_id", "99004"]		
					replace => ["type", "logs"]
					add_field => ["src_ip", "%{host}"]
			
					}
		if "filesystem" in [system] and "pct" > "0.104" {
		mutate {
		add_field => ["m1", " More then 10% disk space consumed"]
		add_field => ["engine_log_id" , "1"]
		add_field => ["message" , "%{system} %{mount_point} %{metricset} %{m1}"]
						}
						
					  }

				}

```

**output in powershell**

![Capture](https://us1.discourse-cdn.com/elastic/original/3X/f/2/f269832ac63f2c39f1e83e48337433b6754a6d5a.PNG)

---

<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: [October 14, 2017, 3:11am UTC](https://discuss.elastic.co/t/unable-concatenate-multiple-fields-which-is-collected-by-metricbeat/100744/2 "2017-10-14T03:11:27Z")

</div>

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