# How to scale input data when use logstash

**URL:** <https://discuss.elastic.co/t/how-to-scale-input-data-when-use-logstash/39199>\
**Category:** Logstash\
**Created:** [January 14, 2016, 7:30am UTC](https://discuss.elastic.co/t/how-to-scale-input-data-when-use-logstash/39199 "2016-01-14T07:30:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NgocPham](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ngocpham/32/6242_2.png) [@NgocPham](https://discuss.elastic.co/u/NgocPham)\
**Post date:** [January 14, 2016, 7:30am UTC](https://discuss.elastic.co/t/how-to-scale-input-data-when-use-logstash/39199/1 "2016-01-14T07:30:44Z")

</div>

Hi . Im newbie in elasticsearch and logstash. And I have some question . Please help me 🙂

Im trying input data from postgres database into elasticsearch. I config and it running ok. But now i want scale data before input it into elasticsearch server.

Example : i have three field like this:  
id....code....name  
1.....10...........John  
2......19.........Lina

i want scale data in field name . It look like John --\> J o h n . Lina ---\> L i n a  
i want only field name scale like it when appear only in elasticsearch.  
Thanks for your help :x :x

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 14, 2016, 7:37am UTC](https://discuss.elastic.co/t/how-to-scale-input-data-when-use-logstash/39199/2 "2016-01-14T07:37:10Z")

</div>

What do you mean by "scale"? Perhaps you can give an example of what you currently get (e.g. with a `stdout { codec => rubydebug }` output and show us what you want to get instead.

From what you write above it looks like you want to insert spaces between each letter in the name field, but that doesn't make sense.

---

<div class="post-metadata">

**Author:** ![NgocPham](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ngocpham/32/6242_2.png) [@NgocPham](https://discuss.elastic.co/u/NgocPham)\
**Post date:** [January 14, 2016, 7:47am UTC](https://discuss.elastic.co/t/how-to-scale-input-data-when-use-logstash/39199/3 "2016-01-14T07:47:22Z")

</div>

First thanks for your help.

yes,my expected is spaces between each letter in the name field. I want increase more term in elasticsearch. Because if only "John". it is only 1 term. But " J" "o" "h" "n" it like 4 term.

I want custom search in elasticsearch like my mind 🙂

Logstash have anything can spaces between each letter in someone field i want ?

Thanks you very much

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 14, 2016, 6:29pm UTC](https://discuss.elastic.co/t/how-to-scale-input-data-when-use-logstash/39199/4 "2016-01-14T18:29:26Z")

</div>

You can use a ruby filter to accomplish that, but I think you should solve this on the Elasticsearch side. It should be possible to define an analyzer that emits one term per letter.

---

<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 6, 2017, 5:15am UTC](https://discuss.elastic.co/t/how-to-scale-input-data-when-use-logstash/39199/5 "2017-07-06T05:15:41Z")

</div>

Closed on July 6, 2017, 5:15am UTC


