@PaulPanther Many questions. My code did not work. "viz_qRFCeLJ6": {
"type": "splunk.table",
"options": {
"columnFormat": {
"Tags": {
"rowBackgroundColors": "> table | seriesByName('hypervHostMaxMetrics') | matchValue(hypervHostMaxMetricsRowBackgroundColorsEditorConfig)"
}
}
},
"context": {
"hypervHostMaxMetricsRowBackgroundColorsEditorConfig": [
{
"match": "*S1*",
"value": "#1F4D5B"
},
{
"match": "*S2*",
"value": "#D81E5B"
}
]
}, How do I search for wildcards? From my original post, the data will look something like this: HOST-S1-123456 CPU 30.0% W MEM 14.0% N NET 85.0% C Because hypervHostMaxMetrics contains at least 1 occurrence of % C, the background should be red. If there were no % C, but at least 1 occurrence of %W, the background should be orange. And if there are no occurrences of % C and no occurrences of % W, meaning there are 3 occurrences of % N, the background should be green. In the above-supplied code, I am using the S1 or S2 as these are in the HOST because there is only one occurrence of either of these per cell. Where the % C, W, N might have 1, 2, or 3 occurrences. troubleshooting wildcards and not the occurrences of the match. I am only using the json for rowBackgroundColors, rowColors, and countRowColorsEditorConfig pertaining to the string. The numeric color formatting is not required. In Classic I used the <format> tags to select the color based on the % C, W, or N using a case statement/command. <format type="color" field="Hyper-V Host Max Metrics">
<colorPalette type="expression">case (match(value,"% C"), "#FF0000",match(value,"% W"), "#FFA500",match(value,"% N"), "#008000")</colorPalette>
</format>
How do I do the same in DS? I changed match to matchValue as explained in the Selector and formatting functions page I referred to in the original post. But this did not work either. Thanks again for your help. God bless, Genesius
... View more