Currently it does the account but does not delete the "/".
ruby {
code => '
event.set("execution_length_input", event.get("[execution][input]").to_s.length -
("[execution][input]").to_s.count("\") )
'
}
Currently it does the account but does not delete the "/".
ruby {
code => '
event.set("execution_length_input", event.get("[execution][input]").to_s.length -
("[execution][input]").to_s.count("\") )
'
}
You could try
code => '
e = event.get("[execution][input]")
if e
event.set("execution_length_input", e.to_s.delete("/").length)
end
'
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 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.