I have following URI in my logs.
where 1234567890 is user id. I would like to search for /svc/appName//catalog/search/.
I am using following to search
index=jboss sourcetype=jbosstomcataccess_log /catalog/search/.
But it returns all of the above URIs.
How would I search for the exact URI for all the user ids?
You're searching for text that appears in all events so you will get all events in your results. To narrow the results, add qualifiers to your search. Is the URI in a field? If so, you can try
index=jboss sourcetype=jboss_tomcat_access_log /catalog/search/ | where like(URI,"%/catalog/search/" | ...
index=jboss sourcetype=jboss_tomcat_access_log /catalog/search/ NOT "/catalog/search/(*"
to exclude events that have parens near the end.