# Logstash with ruby command

**URL:** <https://discuss.elastic.co/t/logstash-with-ruby-command/229576>\
**Category:** Logstash\
**Created:** [April 24, 2020, 5:16am UTC](https://discuss.elastic.co/t/logstash-with-ruby-command/229576 "2020-04-24T05:16:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111228](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111228/32/56505_2.png) [@111228](https://discuss.elastic.co/u/111228)\
**Post date:** [April 24, 2020, 5:16am UTC](https://discuss.elastic.co/t/logstash-with-ruby-command/229576/1 "2020-04-24T05:16:10Z")

</div>

Hello everyone I use ruby in my logstash to increase the value of the field by 1000 and I do it but in logstash logs I constantly see a message with error  
[ERROR][logstash.filters.ruby][main] Ruby exception occurred: undefined method `\*' for nil:NilClass  
tell how to solve this problem

 ![Screenshot from 2020-04-24 08-14-38](https://us1.discourse-cdn.com/elastic/original/3X/a/6/a60f638bb68ac45d049c0a46b3756a2effa50cca.png)

---

<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:** [April 24, 2020, 4:53pm UTC](https://discuss.elastic.co/t/logstash-with-ruby-command/229576/2 "2020-04-24T16:53:42Z")

</div>

That is telling you that you have an event in which the [request\_time] field does not exist.

---

<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:** [May 22, 2020, 4:53pm UTC](https://discuss.elastic.co/t/logstash-with-ruby-command/229576/3 "2020-05-22T16:53:54Z")

</div>

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