Hi Experts,
While adding below query to my dashboard i am getting error saying
|eval Category=case (Ratings>"8","Promoter",Ratings > "7","Detractor",Ratings > "6" AND Ratings < "9", "Passive")
Error: Unencoded <
Regards
Mayank
Inside the XML you need to escape characters
so
|eval Category=case (Ratings > "8","Promoter",Ratings > "7","Detractor",Ratings > "6" AND Ratings < "9", "Passive")
Actually you don't need to escape the > to > but it's probably good practice.
Hi @Macky_29
Below is the mapping of special characters with html entty, either you can use mapping word
enclose the query in cdata tags
<![CDATA[ <content_with_special_characters> ]]>
https://docs.splunk.com/Documentation/SplunkCloud/latest/Viz/OverviewofSimplifiedXML
Inside the XML you need to escape characters
so
|eval Category=case (Ratings > "8","Promoter",Ratings > "7","Detractor",Ratings > "6" AND Ratings < "9", "Passive")
Actually you don't need to escape the > to > but it's probably good practice.