Hi The above works..
If i need to use two fields in testconn inputlookup file to match against the events the result shows will be all 0 shown.
Here is the constructed command. Can advise on this.
index=main sourcetype=oracle ACTION_NAME=LOGON [inputlookup testconn|fields username,datsource]
| stats count(username) as uTotal,count(source) as sTotal by username datsource
| append [ | inputlookup testconn|fields username,datsource | eval uTotal=0,sTotal=0]
| stats max(uTotal),max(sTotal) by username datsource
The result is to shown username and datsource have total of the access and shown 0 with at the total of the access if there is no access.
sample output
username datsource uTotal sTotal
test1 DB1 10 10
test2 DB2 0 0
test1 DB1 0 0
... View more