Security

How to update multiple value in same field using eval command?

Rajiv_splunk
Path Finder

HI Everyone,

I am trying to update multiple value in the same field using eval case command but it returning the below error

Error in 'eval' command: The expression is malformed. Expected ).

My requirement is to update when website is ABC the delievery_status should be on_the_way, and when website is xyz the delievery_status should be delievered else it should say Nt delievered. and i am writing the below case statement

| eval delievery_status = case (website="ABC" "on_the_way" website="xyz", "delievered", "Not_delievered")

Can anyone please help me on this what i am missing in this

Tags (1)
0 Karma
1 Solution

DanielPriceUK
Path Finder

| eval delievery_status =
case (website="ABC","on_the_way",
website="xyz", "delievered",
True(),"Not_delievered")

View solution in original post

Rajiv_splunk
Path Finder

Thanks a lot @DanielPriceUK . It works :)... Thanks for a quick reply

DanielPriceUK
Path Finder

| eval delievery_status =
case (website="ABC","on_the_way",
website="xyz", "delievered",
True(),"Not_delievered")

Rajiv_splunk
Path Finder

Thanks a lot @DanielPriceUK . It works :)... Thanks for a quick reply

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...