Anyone can you help me? Below codes were from my ELK Version: 6.3.2 and everything works fine before. But, when I've upgraded this week to 7.2 these code not working as expected.
Good morning! Admittedly, I don't know a lot about scripting in this way, but looking at the logic of your script block, it looks like you have a fundamental mistake: you're checking if things are null, but if one of them isn't, you use all three.
Perhaps you should try:
var result = '';
if (doc['os.keyword'].value != null) {
result = result + doc['os.keyword'].value + ' ';
}
// etc
return result;
Have you debugged this at all? For example, try the following:
if (doc['os.keyword'].value != null) { return doc['os.keyword'].value; } return "";
If that doesn't work, I can reach out to the team about a bug.
Hi @mark.quilates,
I have the same problem with ver. 6.3.0
They replied that it was a bug in 6.3.0 , but apparently it came back again in later versions(regression?).
I'd like to know the "stable" version, and maybe before installing and configuring everything...
Hi,
I updated just kibana from 6.3.0 to 6.3.2 (I readed on support matrix and this is the latest "minor" version compatible with ELK 6.3.0), but it did not solve the problem. the behavior is the same as the previous version 6.3.0.
Sometimes, the expression doc['my-field'].value seems to be null.
I just thought it was a Kibana bug but probably it's related to ELK 6.3.0 (6.3.2 stack works for @mark.quilates )
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.