I'm trying to create a scripted field so that I can perform some arithmetic.
I have the following field, which is currently a string: 'UCD-SNMP-MIB::memTotalReal.0.keyword'.
I want to convert that to an integer to do calculations so I went about to creating a scripted field and the Script syntax is:
cast:'('int')' memTotalReal = doc['UCD-SNMP-MIB::memTotalReal.0.keyword'].value;
but kept getting compile error.
Trying to use Painless scripting and following the doc but it's not helping.