If you are not adept at writing ruby you could start with something like
ruby {
code => '
h = event.get("host")
if h and h.respond_to? "each_index"
h.each_index { |i| event.set("hrProcessorLoad#{i}", h[i]["iso...hrProcessorLoad"]) }
end
'
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.