title: Ruby plugin in logstash not working
body: <p>The ruby filter inside ruby filter raises an error at =>. I'm confused on how to make it work. I am  supposed to remove fields from log files which has many json objects. I am removing the entries with very long keys.   </p>
  
  <pre><code> input {
   file {
  type =&gt; "syslog"
  
  # Wildcards work, here :)
  path =&gt; ["C:\Users\ppurush\Desktop\test\*.log"]
  
  
   }
  }
  
  filter{
  ruby {
   code =&gt;"
  
       keyval = [url][queryString].split('&amp;')
  
              for field in keyval
                  result = field.split(': ')
                  key = result[0]
                  if key =~ /^.{50,}$/
            ruby {
                  remove_field =&gt;"[  "[url][queryString]" ]"
                  }
              end
  "
      }
  }
  
  output {
    stdout { }
    elasticsearch { embedded =&gt; true }
  }
  </code></pre>