In Splunk 4.3.x pie charts using showPercent=true - is it possible to round up percent values shown on the chart?
Using SPlunk 6 - it also defaults to 3 decimal places - how to change how many decimals?
I think this will work:
yoursearchhere
| top abc showperc=true
| eval percent=round(percent,0)
I downvoted this post because i tried, it does not work.
Does not work:
index=abc Year=1999 | stats sum(Field1) as NewField by Group | eval NewField=round(NewField,1)
Pie chart still shows as 3 decimal value, as per it's default formatting.
It works, but you have to be sure to use the results of the round() function in your chart.
That won't work - pie chart seems to be doing percent calculations on it's own