We are attempting to add lookup values to one of our alerts on a 5.0.3 installation. We do not have access to the file system, so all of our work needs to be done through the Web UI.
I’ve copied the values found at http://docs.splunk.com/Documentation/AddOns/released/Oracle/Lookups and saved them as .CSV files.
I then went to Manager > Lookups > Lookup Table Files and uploaded them in our Oracle “App Context”.
I then visited “Permissions”, and set it to “Read” for “Everyone” in “This app only”.
Back in the app context, if I search for
index="oracle*" sourcetype="os_audit" action="17"
I get many results that look like this:
Apr 23 08:28:05 dvl8-oracle-01 Oracle Audit[8135]: LENGTH: "342" SESSIONID:[8] "26756899" ENTRYID:[1] "2" STATEMENT:[2] "22" USERID:[10] "SHARED_REF" USERHOST:[5] "XXXXXXX" TERMINAL:[7] "unknown" ACTION:[2] "17" RETURNCODE:[1] "0" OBJ$CREATOR:[10] "SHARED_REF" OBJ$NAME:[20] "XXXXXX" OBJ$PRIVILEGES:[16] "---------Y------" AUTH$GRANTEE:[6] "PUBLIC" OS$USERID:[4] "XXXXXX" DBID:[10] "3479291889"
If I change that to
index="oracle*" sourcetype="os_audit" action="17"
| lookup oracle_returncode.csv RETURNCODE as RETURNCODE OUTPUT result as RC
I get the message “Assuming implicit lookup table with filename ‘oracle_returncode.csv’” , but the results are no different. Our goal is to get a human-readable value (RC) to include with our alerts.
It seems that my syntax is correct. If I change the first occurrence of “RETURNCODE” to something else, I get “Error in ‘lookup’ command: Could not find all of the specified lookup fields in the lookup table.” If I change “result”, I get the same message.
I’m new to Splunk - I’ve done quite a bit of searching, and I’ve tried everything that I can think of. Any guidance would be greatly appreciated.
... View more