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


(Cheeseandpepper) #1

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.


(Cheeseandpepper) #2

I was able to do this like so...

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

(system) #3