I am trying to pull list of different URLs from a splunk query. The data is like below.
1. Need to group data like below as one - /v7/ap/deal/config?groupid
Need to group data like below as one - /v7/ap/deals/*/deals-allowed
Need to group datalike below as one -- /v1/deal/deals//deal-group/item?startdate
Use the "cluster" function. It is extremely useful and will do exactly what you're asking.
index=_internal source=*splunkd.log* log_level!=info | cluster showcount=t | table cluster_count _raw | sort -cluster_count
View solution in original post
Thanks alot for the information. Is it possible to use cluster command on one field. In my case it is url field alone.
Glad to help. And yes, you can use this with any query, just pipe the results to cluster, and/or table any fields you want to display.