TL;DR;
How to change the color of Log-Insights Visualization?
What is desired
Consider the following log insight query:
stats count(*) AS CHECKOUTS group by status
It will provide the logs counted by groups of status. When going to the tab of visualization I can view, for example, a Pie chart with the log information. For instance:
This chart can be added to a dashboard, just like the metrics, but selecting the color for display is very important, for instance if I have a status "FAILED" I'd like it to show red, whilst if I have a status "SUCCEDED" I'd like to render in green.
How can this be achieved?
Hi SandeepVudata, thank you for your answer, however this will only work with metrics or metric filters, not with Log Insights based plots.
I researched about cloudwatch log insights but the documentation does not have edit graph option. https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_Insights-Visualizing-Log-Data.html#CWL_Insights-Visualizing-ByFields