Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How Do I Extract The End of String

$
0
0
Hi, I wonder whether someone may be able to help me please. From a field called 'detail.input' there are two potential outputs as shown below: **Request to /for/submissions/1234567890** and **Request to /for/savedforlater/9876543210** What I'd like to do is extract the number at the end of the string. I'd thought about using a regex, but because of the difference in the string, i.e. "submissions" as opposed to "savedforlater", I wasn't sure whether this could be done, so I wondered if I could the 'str' and 'len' commands. I know how to omit the end of the character string, but I was wondering whether someone may be able to provide some guidance please how I can extract the end of the character string. Many thanks and kind regards Chris

Viewing all articles
Browse latest Browse all 47296

Trending Articles