You'll have to use a ruby filter for that. Something similar to
ruby {
code => "
event.to_hash.each { |k, v|
event[k] = v.to_f if k.start_with? 'metric-'
}
"
}
should work.
You'll have to use a ruby filter for that. Something similar to
ruby {
code => "
event.to_hash.each { |k, v|
event[k] = v.to_f if k.start_with? 'metric-'
}
"
}
should work.
© 2020. All Rights Reserved - Elasticsearch
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.