How can we write regex for below?
CEF:0|Incapsula|SIEMintegration|1|1|Normal|0| fileId=465000430130063349
Here I want to extract only 0 placed between || just before fileId.
How can we write regex for below?
CEF:0|Incapsula|SIEMintegration|1|1|Normal|0| fileId=465000430130063349
Here I want to extract only 0 placed between || just before fileId.
Copyright © 2021 Jogjafile Inc.
In the following regex we have:
(?<myField>\d)|character, escaped as:\||andfileId):\s?fileIdPutting it all together:
So you should be able to apply the regex in Splunk with:
And then use the
myField. Obviously, rename to whatever makes sense for you, and target the appropriate field if not_raw