I was creating a scripted field in Kibana. I solved the problem by changing the variable name from params to tmp??? I didn't know params is reserved word.
@Casper_Thrane, we recently updated our documentation for how to write scripts. Hopefully this information helps, but if not, please let us know where we can improve!
Also, consider using runtime fields instead of Kibana scripted fields. They're more flexible, and you don't need to index them.
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.