I have this type of log file:
182.236.164.11 - - [04/Mar/2019:18:20:56] "GET /cart.do?action=addtocart&itemId=EST-15&productId=BS-AG-G09&JSESSIONID=SD6SL8FF10ADFF53101 HTTP 1.1" 200 2252 "http://www.buttercupgames.com/oldlink?itemId=EST-15" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5" 506
I am trying to create a regular expression to only match the word Intel, regardless of the relative position of the string in order to create a field.
I have come up with this regular expression from the automated regex generator in splunk:
^[^;\n]*;\s+
But it doesn't always work as it will match other strings as well.
I want to match the string Intel only so as to create a field in Splunk.
I have also tried the following code as to only match the word but still to no avail:
\bIntel\(?P<CPU>\w+)
Any inputs are welcome.
... View more