Hi All,
I have this scenario where i have couple of diff types of URL's like
/webapp/wcs/services/Key
/webapp/wcs/services/Address
/wcs/resources/v1?*
/webapp/orderId=*
I want to write a query to list down the response time for each url by url wise like this
URL Response time
/webapp/wcs/services/Key 50
/webapp/wcs/services/Address 30
/wcs/resources/v1?* 25
/webapp/orderId=* 10
I know we can use like command but like only matches the exact url which are starightforward , if wildcard is there its not able to match and hence not showing the stats , how to manipulate the query to get the required result .....i have lot of url's but only listing 4 here .
i wrote the below query but its not returning the data for the url's containing the wildcards
index=ih host=los sourcetype=ihD
(URLRedefined="/webapp/wcs/services/Key" OR
URLRedefined="/webapp/wcs/services/Address" OR
URLRedefined="/wcs/resources/v1?*" OR URLRedefined="/webapp/orderId=*" )
| eval URL=case(like(URLRedefined,"/webapp/wcs/services/Key"),"/webapp/wcs/services/Key",
like(URLRedefined,"/webapp/wcs/services/Address"),"/webapp/wcs/services/Address",
like(URLRedefined,"/wcs/resources/v1?*"),"/wcs/resources/v1?*",
like(URLRedefined,"/webapp/orderId=*"),"/webapp/orderId=*")
| stats perc95(ResponseTime) by URL
... View more