Never ending story: how to check and remove empty fields, arrays etc

season I
season II
season III

season IV (thanks to season III):

  ruby {
        # Initialize the suspects once:
        init => "SuspectFields = ['tags']"
        code => "
                SuspectFields.each do |field|
                        event.remove(field) if event.get('field').nil? or event.get('field').empty?
                end
        "
  }

to be continued...

1 Like

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