Hi Team
I have a query where I am doing the TimeChart & % (not using the timechart and calculate the % in timechart line as this doesn't solve my purpose hence using it this say) The query i...
See more...
Hi Team
I have a query where I am doing the TimeChart & % (not using the timechart and calculate the % in timechart line as this doesn't solve my purpose hence using it this say) The query is working fine however it shows all the data on field and I want to have that field only show top 10 by volume or count Query
index=xyz (catcode="*") (prodid="1") (prodcat="*") success="*"
| bucket _time span="1d"
| eval TheError=if(success="false" AND Error_Value like "%%",count,0)
| eval Success=if(success="true",count,0)
| stats sum(TheError) as "Failed", sum(Success) as "Passed", sum(count) as Total by _time, catcode
| eval Failed_Percent=round((Failed/Total)*100,2)
| fields _time, catcode, Failed_Percent
| xyseries _time, catcode, Failed_Percent
I don't want to do the 'eventstats' because it will count all on prodid level and not at catcode level hence this query This query counts all false with error on catcode....and count all attempts on individual catcode, then calculate the % with event stats the total count will be not at catcode but all prodid count i.e. all catcode's total attempt's count
Thanks in advance