Dashboards & Visualizations

modify colors for saved searches

Charlie
Explorer

I see how to update the colors for a saved search that displays as part of a dashboard, but do not see how to modify the colors of a saved search shown in the display report builder.

I'd like to do something similar to the "charting.seriesColors" color property.

Thoughts?

0 Karma
1 Solution

lguinn2
Legend

Okay - the best practice for managing the detailed look of a report, including the colors, is to put the report on a dashboard and then edit the dashboard settings. As you point out, you can find the settings for a simple XML dashboard here and more detailed charting settings here.

If you really want to change the look of a report that is not part of a dashboard, you will need to mess with the viewstate. This is not the recommended practice, and it is not well-documented. But if you take a look at savedsearches.conf and viewstates.conf in the manuals, you will see that the viewstate often seems similar to the chart settings in views. Each saved search may have a corresponding viewstate.

Most of the time, the viewstate is created/updated when the user creates/updates a report using the report builder. If at all possible, this is the best way to do things if you aren't putting the report on a dashboard.

However, after you have set everything that you can via the report builder, you can manually edit the viewstates.conf file. The weird names and numbers in the viewstates.conf file, such as "FieldPicker_0_6_1" refer to the advanced XML modules that make up the view. To figure out these numbers, add ?showsource=true to the end of the URL when you are looking at the report. At this point, you are embarking on a real voyage - I recommend that you learn all you can about advanced XML before you get too far. Be prepared to invest days, not just hours. (Now you see why best practice = use a dashboard.)

View solution in original post

0 Karma

lguinn2
Legend

Okay - the best practice for managing the detailed look of a report, including the colors, is to put the report on a dashboard and then edit the dashboard settings. As you point out, you can find the settings for a simple XML dashboard here and more detailed charting settings here.

If you really want to change the look of a report that is not part of a dashboard, you will need to mess with the viewstate. This is not the recommended practice, and it is not well-documented. But if you take a look at savedsearches.conf and viewstates.conf in the manuals, you will see that the viewstate often seems similar to the chart settings in views. Each saved search may have a corresponding viewstate.

Most of the time, the viewstate is created/updated when the user creates/updates a report using the report builder. If at all possible, this is the best way to do things if you aren't putting the report on a dashboard.

However, after you have set everything that you can via the report builder, you can manually edit the viewstates.conf file. The weird names and numbers in the viewstates.conf file, such as "FieldPicker_0_6_1" refer to the advanced XML modules that make up the view. To figure out these numbers, add ?showsource=true to the end of the URL when you are looking at the report. At this point, you are embarking on a real voyage - I recommend that you learn all you can about advanced XML before you get too far. Be prepared to invest days, not just hours. (Now you see why best practice = use a dashboard.)

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...