rex command to extract fields from Message=Document 345, Microsoft Word Text owned by first.last on abc1234 was some text on some text.............
Marked with bold text are common in all the values.
result of field names should look like this.
DocumentNum=Document 345
DocumentType = Microsoft Word Text
username=first.last
device=abc1234
location=some text
I have started with following rex command, but I cannot look for the text till "owned by" and for user name "owned by" to "on" and so on
| rex Message="(?[^\,])\,(?[()?:owned]*)" | table DocumentNum DocumentType
my result is looking like this: DocumentNum = Document 345
DocumentType = Micro
... View more