Hi I want to break a log file using Streamsets. the log is like,
Deny tcp src dmz:77.77.77.7/61112 dst dmz:55.55.56.57/139 by access-group "outside_access_in" [0x8b3ecfdc, 0x0]
There may be more than 2 IP's also in the log and I'm trying to capture the only 1st and 2nd IP address from my log. It's written that Streamsets use Java REGEX patterns.
what I did till now in Expression Evaluator processor in Streamsets is,
${str:regExCapture(record:value('/Message'),'(\\d+[.]\\d+[.]\\d+[.]\\d+/?\\d*)', 1)}
Any idea how to capture the 2nd IP?