# Why the logstash running so slowly?

**URL:** <https://discuss.elastic.co/t/why-the-logstash-running-so-slowly/44664>\
**Category:** Logstash\
**Created:** [March 17, 2016, 7:29am UTC](https://discuss.elastic.co/t/why-the-logstash-running-so-slowly/44664 "2016-03-17T07:29:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lester015](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@lester015](https://discuss.elastic.co/u/lester015)\
**Post date:** [March 17, 2016, 7:29am UTC](https://discuss.elastic.co/t/why-the-logstash-running-so-slowly/44664/1 "2016-03-17T07:29:49Z")

</div>

hi everyone,  
I found the logstash running my conf file so slowly,Anyone has an solution? My conf file is very easy.

a. stdin.conf contents is input {  
stdin {  
add\_field =\> {"key" =\> "value"}  
codec =\> "plain"  
tags =\> ["add"]  
type =\> "std"  
}  
}  
output{  
stdout {codec =\> rubydebug}

}

b. the logstash orders is no problem.

./logstash -t -f stdin.conf  
Configuration OK

c.when I input the hello world in console, it is running ...  
"hello world"  
Settings: Default pipeline workers: 4

I'm waiting along time,there is no result for me! what's the problems?

Best Regards,  
Levi

---

<div class="post-metadata">

**Author:** ![ebuildy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ebuildy/32/6070_2.png) [@ebuildy](https://discuss.elastic.co/u/ebuildy)\
**Post date:** [March 17, 2016, 9:17am UTC](https://discuss.elastic.co/t/why-the-logstash-running-so-slowly/44664/2 "2016-03-17T09:17:47Z")

</div>

Run it with --debug flag, it could help.

BTW, you want to add field in a String object (the codec =\> plain), I am not sure this can work.

---

<div class="post-metadata">

**Author:** ![lester015](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@lester015](https://discuss.elastic.co/u/lester015)\
**Post date:** [March 17, 2016, 9:44am UTC](https://discuss.elastic.co/t/why-the-logstash-running-so-slowly/44664/3 "2016-03-17T09:44:35Z")

</div>

it's works after I add the -- debug flag. thank you!

---

<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:** [March 17, 2016, 11:59am UTC](https://discuss.elastic.co/t/why-the-logstash-running-so-slowly/44664/4 "2016-03-17T11:59:59Z")

</div>

> it's works after I add the -- debug flag. thank you!

I can't imagine that the `--debug` option had anything to do with this. It is, however, a very useful debugging aid.

> BTW, you want to add field in a String object (the codec =\> plain), I am not sure this can work.

It can. The input codec just affects how the input payload is decoded (if at all). The resulting event can always have multiple fields.

---

<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:06am UTC](https://discuss.elastic.co/t/why-the-logstash-running-so-slowly/44664/5 "2017-07-06T05:06:38Z")

</div>

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


