Hi,
I have extracted a transaction id using field extraction.
Field Extraction Name: BANK_APPLOG : EXTRACT-TransID
RegEx: ^(?:[^>\n]*>){4}(?P<TransID>\w+)
How do i include this field extraction name in the search so that I can retrieve all the transaction ids.
Index=ABC (sourcetype=ghi, source=def if needed) TransID |table TransID, _raw
I tried index=main sourcetype=BANK_APPLOG TransID | table TransID, _raw
but this did not return any results.
If you completed the field extraction and saved it you can use the field in your searches.
Otherwise you could use it adding a command
rex "^(?:[^>\n]*>){4}(?P<TransID>\w+)"
and use it.
Bye.
Giuseppe
I have tried this but this retrieves all the events and not by transaction id.
index=main sourcetype=BANK_APPLOG | rex "^(?:[^>\n]*>){4}(?P<TransID>\w+)"