when working with ruby filter it stops passing data to elastic search

Description

In my logstash configuration i'm using ruby filter in filter section. When trying subtraction of two fields or division by numericals, the data is being evaluate for particular interval(5 min) and further data stops going into elasticsearch database. When i restart logstash and elasticsearch services again it repeats for same interval and stops . Can anybody help me out with this issue.

my filter expression:
::Subtraction::
ruby
{
code => "event['boo'] = event['foo'] - event['moo']"
}
even tried
code => "event['boo'] = (event['foo'] - event['moo']).to_i"

:ivision::
ruby
{
code => "event['boo'] = event['foo'].to_i / 1024"
}

thanks in advance

Activity

Show:
Philippe Weber
March 10, 2015, 1:29 PM

Assignee

Logstash Developers

Reporter

aryan

Labels

Affects versions

Configure