Recently, Kibana is used. In the following example, I want to write a script in painless The scripted field is added to indicate the sum of totalCount in \'statistics_msg\'.