Max/Cap values -or- If/Then logic

Comments

1 comment

  • Avatar
    Kumar Saurabh

    Yes, there is. Lets say you have a query like:

    * | parse "timetaken = * ms" as millis

    And you want to set millis to 100 if its greater than 100, then just do the following

    * | parse "timetaken = * ms" as millis | if(millis > 100, 100, millis) as millis

    0
    Comment actions Permalink

Please sign in to leave a comment.