<Ruby> Use StaticDate and Time for Dev Env and CurrentDateTime for Prod Env

I have a requirement where I need to use specific date/time for a testing at Ruby scripts and not at Logstash level. Is there a way i could stub those value?

Currently I am using the enviorment variable to check if it is test then use x date if not then use current datetime.

Is there a better way to configure logstash for different env.

Here is the solution, to the problem i was actually looking for

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