Hello, If I have additional fields (Score2, Score3), should I add those fields in the search like below? I am not how to do it on eval Name. Please suggest. Thank you for your help | streamsta...
See more...
Hello, If I have additional fields (Score2, Score3), should I add those fields in the search like below? I am not how to do it on eval Name. Please suggest. Thank you for your help | streamstats count as row sum(Score) as running, sum(Score2) as running2, sum(Score3) as running3 | eventstats sum(Score) as total, sum(Score2) as total2, sum(Score3) as total3) | where row <= 7 | eval Score=case(row == 6, total - running + Score, row == 7, total, true(), Score) | eval Score2=case(row == 6, total2 - running2 + Score2, row == 7, total2, true(), Score2) | eval Score3=case(row == 6, total3 - running3 + Score3, row == 7, total3, true(), Score3) | eval Name=case(row == 6, "Other", row == 7, "Total", true(), Name) | fields - row running running2 running3 total total2 total3