Perhaps the regex command will do.
source="http:product_inv_rest"
| spath message
| search message="Request: GET */product-inventory/product *"
| regex message="\s\d+$"
Hi @richgalloway ,
Thanks for response . One more help needed to search following :
source="http:product_inv_rest" | spath message | search message="Response: GET */product-inventory/product 123456 responseBody=*"
search having any digit instead of 123456
The answer is similar to the last one.
source="http:product_inv_rest"
| spath message
| search message="Response: GET */product-inventory/product * responseBody=*"
| regex message="\s\d+ responseBody=.*$"
Thanks for reply ,but unfortunately its not giving me any record .
@Digvijay
It's a matter of customizing the regular expression as you need. There's a lot of pros and cons to using regular expressions, so make sure all your use cases and negative use cases work with your query. Try this:
source="http:product_inv_rest"
| spath message
| regex message="\/product\s(?!123456)(?<TheseAreTheNumbersIWant>\d+)"
| search TheseAreTheNumbersIWant=*
Now all the results following this line will have a number in the message and that number isn't 123456.