@richgalloway
Indeed i used 'by' command but forgot to mention it..It didn't give me the expected output even after using..
Current scenario is,
In Status1.log
Server,Env,Req,Package,INC_Num,Stage_Status - Extracted the event and named the fields like this..
host1,PROD,1666680,mobile1,INC,Staging_Successful
host1,PROD,1666680,mobile2,INC,Staging_Successful
host1,PROD,1666680,mobile3,INC,Staging_Successful
Status2.log
Server,Env,Req,Package,Deploy_Status - Extracted the event and named the fields like this..
host1,PROD,1666680,mobile1,Deployment_Successful
host1,PROD,1666680,mobile2,Deployment_Successful
host1,PROD,1666680,mobile3,Deployment_Successful
Query used: (sourcetype=abc source=Status1.log) OR (sourcetype=abc source=Status2.log) | stats values(*) by Server,Env,Req,Package,Stage_Status,Deploy_Status
There are 244 events present in each log. When i run this query, i got output with only 3 rows...But i need all 244 rows..Below o/p i got with improper data aligned in different columns..
Server Env Req Package Stage_Status Deploy_Status
host1 PROD 1666680 mobile1 PROD Deployment_Successful
host
host1 PROD 1666680 mobile2 PROD Deployment_Successful
host
host1 PROD NIL mobile3 Staging_Successful INC
in addition to this, am getting extra columns for all the unselected fields like values(commands), values(host), values(linecount) etc..I don't need this..
Please suggest what's the problem in this..else suggest the other idea..
... View more