Hi ejpulsar,
I think this is not possible -- (speaking Splunk Version < 6.2 - I don't know if this is now possible).
But if those start and end values are static, you could use the the EVAL- function in props.conf for this:
EVAL-<fieldname> = <eval statement>
* Use this to automatically run the <eval statement> and assign the value of the output
to <fieldname>. This creates a "calculated field."
Something like this could do the trick for you:
EVAL-Name = case((NUM>"100" AND NUM<"120"), "A", (NUM>"121" AND NUM<"180"), "B", (NUM>"180"), "C")
You can use this run everywhere command to test it:
index=_internal | head 1 | eval NUM="182" | eval Name=case((NUM>"100" AND NUM<"120"), "A", (NUM>"121" AND NUM<"180"), "B", (NUM>"180"), "C") | table NUM Name
Hope this helps ...
cheers, MuS
... View more