HI Team,
I have successfully generated number scripted field and i need to create visualization by using that field. whenever i try to achieve that way im getting below detail
" No results displayed because all values equal 0." along with this error "1 of 5 shard failed". Im using version 6.4.0
HI,
Currently, i've only one entry in my index and scripted field returning the userid from the message and please find my message and script for your reference,
if (doc["data.keyword"].value != null){ def m = /UserID: ([0-9]+)/.matcher(doc["data.keyword"].value); if (m.find ()) { return m.group (1) } else { return "no match" } } else { return "NULL"}
2020-03-12 14:25:21:692 Logger - Received JSON Response: UserID: 624646, UserAgent: Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko
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.