Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Utility Functions - len

Table of contents
  1. len
  2. Example


  • len(variable)

If the variable is string type, return length of the string.


search {from="-30d@d", to="-20@d"} sContent("@source","cloudtrail")
let {sourceIPAddress,eventName,eventSource} =f("@cloudtrail")
where eventSource=="" and sContains(eventName,"Describe")==false
aggregate count_sourceIPAddress=count() by sourceIPAddress
let lens=len(sourceIPAddress)