Is it Possible to Extract a Substring using Evaluate Velocity Template Variable
I am looking forward to extract an "IP Address" from the filed named "File name" using Evaluate Velocity Template variable.
The event in the field looks like "UseCase - 184.108.40.206 xxxxxx" where "xxxxx" may be any random string which may/may not be present.
Is it possible to extract the IP address from the event filed using specifically "Evaluate Velocity Template", if Yes then please suggest your valuable inputs to achive the objective.
Thanks & Regards
Re: Is it Possible to Extract a Substring using Evaluate Velocity Template Variable
Yes but you need to break the Fields down in indexed chunks using more than likely a combination of String and Add variables ------
the first step would be to alias your ---- Original Field contents to a different field ---------
Source User Name = sourceUN
index of sourceUN -----some delimiter -----
then add of the index above and 1
then substing of the Original source field, the index and -1
than the final evaluate velocity template would look like this ----------