How can I use Logarithm function with elasticsearch?

I want to do spanning with 1log2 value with elasticsearch query. how can i do it??