Ask: Generate a graph which should show day wise percentage of API success/Availability data in a Splunk dashboard.
Data(search based on specific string) is based on the total number of Success calls on API Named as 'ABC' and Total number of failure calls on API Named as 'ABC' for given period.
Appreciate any pointers for generating the Splunk query for displaying success percentage in day wise graph.
Query tried :
index=app_index "ABC Api call success"
| stats count(unique_success_string) as sucessCall
| appendcols [search index=app_index "ABC Failure call" | stats(unique_failure_string) as fialuresCall]
| eval percentage = (sucessCall/fialuresCall)*100
| fields _time percentage