Can anyone help me with a regular expression for an extraction please?
Need to extract "failure" from below and add to field called "Error":
160.2:ERR Code = <1/failure/7353280025534419>
This regex does not work:
rex field=_raw "\d+\:ERR\s+Code\s+\=\s\<1\/(?P<Error>[^\>]+)\/[0-9]\>"
Thanks in advance.
Am not sure which part exactly would you like to extract.
if it's failure:
|rex field=_raw "\/(?<Error>\S+)\/"
if it's the long digit which is the error code then:
|rex field=_raw "\/(?<Error>\d+)\>"