# Filter unito too large

**URL:** https://discuss.elastic.co/t/filter-unito-too-large/185067
**Category:** Logstash
**Created:** [June 10, 2019, 10:24pm UTC](https://discuss.elastic.co/t/filter-unito-too-large/185067 "2019-06-10T22:24:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![df5732f0e4bff6b59465](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/df5732f0e4bff6b59465/32/46465_2.png) [@df5732f0e4bff6b59465](https://discuss.elastic.co/u/df5732f0e4bff6b59465)
#### Post date: [June 10, 2019, 10:24pm UTC](https://discuss.elastic.co/t/filter-unito-too-large/185067/1 "2019-06-10T22:24:19Z")

</div>

Hello. Now, in my filter block, there are 480 lines of code, is it possible to separate it?

---

<div class="post-metadata">

### Author: ![staodd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/staodd/32/24509_2.png) [@staodd](https://discuss.elastic.co/u/staodd)
#### Post date: [June 10, 2019, 10:39pm UTC](https://discuss.elastic.co/t/filter-unito-too-large/185067/2 "2019-06-10T22:39:48Z")

</div>

What do you mean? Separate as in???  
Separate files?? Separate filter blocks??

---

<div class="post-metadata">

### Author: ![df5732f0e4bff6b59465](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/df5732f0e4bff6b59465/32/46465_2.png) [@df5732f0e4bff6b59465](https://discuss.elastic.co/u/df5732f0e4bff6b59465)
#### Post date: [June 10, 2019, 10:54pm UTC](https://discuss.elastic.co/t/filter-unito-too-large/185067/3 "2019-06-10T22:54:59Z")

</div>

Separate filter blocks, to other file.

And annotate like that  
filter{  
if tag = "life"  
filter by file1.conf  
else  
filter by file2.conf

---

<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: [June 11, 2019, 12:38am UTC](https://discuss.elastic.co/t/filter-unito-too-large/185067/4 "2019-06-11T00:38:06Z")

</div>

Logstash concatenates all the configuration files into a single configuration string. There is no include operation as such (although you could implement it with something like m4). If you want to isolate a set of processing into a different file then pipeline-to-pipeline with a [distributor](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#distributor-pattern) pattern might suit you.

---

<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: [July 9, 2019, 12:38am UTC](https://discuss.elastic.co/t/filter-unito-too-large/185067/5 "2019-07-09T00:38:07Z")

</div>

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