Logstash log10 function in ruby

I have to use log10 function, can anyone support.
tried both options but didnt work

event.set("AvgRssiHigh", 10*log10((s.sum/b.sum) / 1000000000000))

event.set("AvgRssiHigh", 10*((s.sum/b.sum) / 1000000000000).log10)


event.set("AvgRssiHigh", 10.0*(Math.log10((s.sum/b.sum) / 1000000000000)))

thanks. you are truly an expert.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.