How to set and insert class variables in a hash with Ruby/Logstash

I need to persist variables through class variables in ruby from Logstash so I can add fields to subsequent events such as timestamp

can this be done initiating hash maps in Ruby then inserting values into the hash to pull each one out and insert into the current event?

Keeping global variables in LS?! How can I run a block of code? should I separate each set with a comma?

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