Elastic search scripting help

Hi ,
I would like find the duration between current time and updatedAt time of
document stored in ES ..
I am trying to use scripting..
script should get

  1. current time
  2. _source.updatedAt
  3. then find the difference in minutes
  4. and then do some more calculations..

I tried with multiple ways, But I am getting errors like this
java.lang.SecurityException: Expression [ConstructorCallExpression] is not
allowed
or
java.lang.SecurityException: Importing
[org.joda.time.format.ISODateTimeFormat] is not allowed
or
java.lang.SecurityException: Method calls not allowed

Please help me to find the solution for this...

Thanks
Samatha

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c3adcab2-ffd5-42d1-b601-248e0e5e274e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.