Any way to use binding.pry in the logstash shell?

I'm curious to know if anyone knows if it's possible to pause the execution of logstash with a pry binding so that I can better debug my conf file. This would greatly speed up development and allow me to understand more how to interact with the scope and variables.

I was able to do this like so...

filter {
  ruby {
    code => "require 'pry'; binding.pry"
  }    
}
2 Likes