Hi, I wonder whether someone could help me please.
I'm using the search below to successfully produce a pie chart with desired results.
tags.transactionName = "Send Email Alert" auditType="TxSucceeded" | eval shortForm='detail.formId'." " | eval shortForm = substr(shortForm, 1, 6) | sort 0 detail.messageId | dedup detail.messageId | chart count by shortForm | eval pieSlice=shortForm + " " + count | fields pieSlice, count
Because this search takes a while to load I'm looking at making this more efficient by removing the dedup element of search, so I've changed this to:
tags.transactionName = "Send Email Alert" auditType="TxSucceeded" | eval shortForm='detail.formId'." " | eval shortForm = substr(shortForm, 1, 6) | sort 0 detail.messageId | **stats dc(detail.messageId)** | chart count by shortForm | eval pieSlice=shortForm + " " + count | fields pieSlice, count
The problem is, is that this no longer produces any results so I've clearly done something wrong.
I just wondered whether someone may be able to look at this please and let me know where I've gone wrong.
Many thanks and kindest regards
Chris
... View more