For e.g. i have a log file in which there are many entries for appGUID. Now how many appGUID's are there, for this i have a code, but how many of them are unique, for this i don't have code. Please can anyone help me on this.
Calculate the unique metrics in a file
Collapse
X
-
I have a perl script that finds the number of unique users in a log file by calling the function 'print_unique_u sers'. Following is the perl script :
Code:function num_unique_users() {echo `print_unique_users 0 | gawk -F"," '{counts[$1]+=1}; END { print length(counts)}'` }
Comment
-
Actually i wanted to parse logs to find unique entries in a file for a particular field. My file has the log entries in following format :
User:ashishg appGUID: wx
User:weqeld appGUID: c09d24cb-bb4f-422b-963a-9cbd00d203cc
User:weqeld appGUID: c09d24cb-bb4f-422b-963a-9cbd00d203cc
User:gulanand appGUID: wx
User:gulanand appGUID: wx
Now i wanted to calculate unique appGUID/User from this log file. How can i do that using C sharp program ?Comment
Comment