I want to indicate whether or not to check, depending on the value of the state field.
For example, if the state value is 1, I want ok,
and if the state value is 0, I want no.
Is there a way to use fields only in that graph with json input?
Unfortunately, there is not.
I know scripted field uses a lot of memory.
Using it inline via JSON input vs a scripted field has very little difference in memory utilization. However, the scripted field is used more widely, perhaps when it's not needed, so I can see your point about it's impact on the memory utilization of the cluster. Would you mind opening up a feature request here and explaining your rationale?
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.