I have tried the following but it did not work:
"dedupSavings" => "(?m)%{NUMBER:dedup_savings:float}[^%]"
For instance, (.*[^%]) -> regex outputs 10 for 10 or 10%. But above one is not. It works fine for data with dedupSavings=10% but not for dedupSavings=10.
I might be missing something here, any help is appreciated.
[^%] means "any character except %" which doesn't seem like what you're looking for. You should probably use %? ("zero or one occurrences of %") instead.
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.