Table 1
userid, action, IP
Table2
sendername, action, client_IP
Query : select Table1.userid, Table1.action, Table1.ip,Table2.sendername FROM table1 INNERJOIN table2 ON table1.ip=table2.client_ip
What can be the equivalent query in Splunk if index is considered a table ?
below is the actual scenario,
indexA : userid, action, ip
indexB: sendername, action, client_ip
ip and client_ip have same values on which I want to build query
both indexes have same field name - action but different value. I am interested to see only indexA's action field
I want to see userid, ip, action from indexA and sendername from IndexB where indexA.ip=indexB.client_ip
EDIT: actual logs below,
index A:
action: deleted
anonymous: 0
component: tool_recyclebin
contextid: 633444
contextinstanceid: 23uu2
contextlevel: 50
courseid: 099987
crud: d
edulevel: 0
eventname: \tool_recyclebin\event\item_deleted
ip: 127.0.0.1
objectid: 35521
objecttable: tool_recyclebin
origin: cli
other: null
target: xxxxxxxxx
timecreated: 1513328455
timestamp: 2017-12-15T20:00:55+1100
userid: 242425
indexB:
2017-12-13T12:59:31.900Z,,WEB,,WEB,xxxxxxxxx,127.0.0.1,<xxxxxxx.@xxxxx.com>,user@sender.com,,13981,1,,,StudiesEnquiry,no-reply@abc.com,0100016sxsxdwdd3-000000@ozone.com,2017-12-13T12:59:36.859Z;SRV=abc.edu:TOTAL=0;SRV=mail.com:TOTAL=0,Incoming,,,,S:MailName=WBE-BAN;S:DataHealth=2
... View more