Hi ,
Can it be possible to write switch case statements in Splunk like other programming languages?
If so, can you help me out with the syntax?
@soumidutta,
Yes , using eval - eval description=case(status == 200, "OK", status ==404, "Not found", status == 500, "Internal Server Error")
Thanks
I was looking for this one
@soumidutta,
Please accept as answer if it helped you. thanks