# Mutate to concatenate two filed

**URL:** https://discuss.elastic.co/t/mutate-to-concatenate-two-filed/149966
**Category:** Logstash
**Created:** [September 26, 2018, 9:12am UTC](https://discuss.elastic.co/t/mutate-to-concatenate-two-filed/149966 "2018-09-26T09:12:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![richagautam](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@richagautam](https://discuss.elastic.co/u/richagautam)
#### Post date: [September 26, 2018, 9:12am UTC](https://discuss.elastic.co/t/mutate-to-concatenate-two-filed/149966/1 "2018-09-26T09:12:13Z")

</div>

Hi Team,

I am using multiple grok filter to capture specific patterns from the log file.Now i want to concatenate one of the filed of first grok filter with one filed of second grok filter.

```
      mutate { 
add_field => ["field3", "%{field1} %{field2}"] 

```

}

My doubt is that :

1. While doing this do i have to put the check of Path as well, so that mutate should add filed of same file(Path).
2. Logstash excute all filters/configuration file wise file or it parse multiple files at a time?

Thanks

---

<div class="post-metadata">

### Author: ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)
#### Post date: [September 26, 2018, 12:18pm UTC](https://discuss.elastic.co/t/mutate-to-concatenate-two-filed/149966/2 "2018-09-26T12:18:52Z")

</div>

The filters are executed sequentially in the order laid out in the config. There is parallel execution with multiple workers, but once a worker thread takes a batch of events from the queue no other threads (workers) act on those events.

---

<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 24, 2018, 12:18pm UTC](https://discuss.elastic.co/t/mutate-to-concatenate-two-filed/149966/3 "2018-10-24T12:18:59Z")

</div>

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