Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to create a search that compares two log files and displays results in a table format?

$
0
0
I have below 2 log files with 4 identical columns and in that, status is different: Status1.log host1,PROD,1666680,mobile1,Staging_Successful host1,PROD,1666680,mobile2,Staging_Successful host1,PROD,1666680,mobile3,Staging_Successful Status2.log host1,PROD,1666680,mobile1,Deployment_Successful host1,PROD,1666680,mobile2,Deployment_Successful host1,PROD,1666680,mobile3,Deployment_Successful Currently, I am able to extract both files individually by using rex command. But my desire is to compare both the files and output as follows. I want to merge the status like below in table format...Please suggest how to do this. host1,PROD,1666680,mobile1,Staging_Successful,Deployment_Successful host1,PROD,1666680,mobile2,Staging_Successful,Deployment_Successful host1,PROD,1666680,mobile3,Staging_Successful,Deployment_Successful

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>