Hi,
my log message is already parsed in a grok filter and i have greedy data, in some messages the greedy data has an oracle error code, and i want to create a new field with this error code. The error code could be at any point of the message.
Below two examples,
[Execute failed for 'CALL sp_apn_dedicated(?,?,?,?)': ORA-06553: PLS-306: wrong number or types of arguments in call to 'SP_APN_DEDICATED' (DBD ERROR: error possibly near <*> indicator at char 5 in 'CALL <*>sp_apn_dedicated(:p1,:p2,:p3,:p4)')]
[Could not connect to SQL database with DBI->connect dbi:Oracle:HOST=oracle-trehs-gread;PORT=1521;SERVICE_NAME=gfs01, AA, **obscured**: ORA-12170: TNS:Connect timeout occurred (DBD ERROR: OCIServerAttach)]
in these two examples want a new field with ORA-\d+ (ORA-12170 and ORA-06553)
Any ideas how was the best filter to do this?
Thanks in advance for your help.