<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Scatter plot with text values and colour in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Scatter-plot-with-text-values-and-colour/m-p/578802#M201714</link>
    <description>&lt;P&gt;I'm trying to plot the following as a scatter chart:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The y-axis should be the namespace. Namespace is a small set of strings, e.g. "default", "argo" or "kube-system".&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The x-axis is time.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="inherit"&gt;Each point should be&amp;nbsp;&lt;/FONT&gt;coloured&lt;FONT face="inherit"&gt;&amp;nbsp;either green or red&amp;nbsp;&lt;/FONT&gt;depending&lt;FONT face="inherit"&gt;&amp;nbsp;on whether or not the&amp;nbsp;&lt;/FONT&gt;workflow succeeded or failed.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Problem 1 - you cannot have non-numeric x and y axis. Time does not appear to be numeric. So how do I convert my namespace to a number? I think it should be 0..N based on it's index is the values that namespace can be.&lt;/P&gt;&lt;P&gt;Problem 2 - how to colour points?&lt;/P&gt;&lt;P&gt;This is how far I have gotten so far:&lt;/P&gt;&lt;PRE&gt;index=foo sourcetype=eventrouter host="event-router-*" source="foo/*" event.involvedObject.kind=Workflow (event.reason=WorkflowSucceeded OR event.reason=WorkflowFailed) | convert num(_time) as x | table event.metadata.namespace x event.reason&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Dec 2021 19:53:51 GMT</pubDate>
    <dc:creator>alex_collins_in</dc:creator>
    <dc:date>2021-12-17T19:53:51Z</dc:date>
    <item>
      <title>Scatter plot with text values and colour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scatter-plot-with-text-values-and-colour/m-p/578802#M201714</link>
      <description>&lt;P&gt;I'm trying to plot the following as a scatter chart:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The y-axis should be the namespace. Namespace is a small set of strings, e.g. "default", "argo" or "kube-system".&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The x-axis is time.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="inherit"&gt;Each point should be&amp;nbsp;&lt;/FONT&gt;coloured&lt;FONT face="inherit"&gt;&amp;nbsp;either green or red&amp;nbsp;&lt;/FONT&gt;depending&lt;FONT face="inherit"&gt;&amp;nbsp;on whether or not the&amp;nbsp;&lt;/FONT&gt;workflow succeeded or failed.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Problem 1 - you cannot have non-numeric x and y axis. Time does not appear to be numeric. So how do I convert my namespace to a number? I think it should be 0..N based on it's index is the values that namespace can be.&lt;/P&gt;&lt;P&gt;Problem 2 - how to colour points?&lt;/P&gt;&lt;P&gt;This is how far I have gotten so far:&lt;/P&gt;&lt;PRE&gt;index=foo sourcetype=eventrouter host="event-router-*" source="foo/*" event.involvedObject.kind=Workflow (event.reason=WorkflowSucceeded OR event.reason=WorkflowFailed) | convert num(_time) as x | table event.metadata.namespace x event.reason&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 19:53:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scatter-plot-with-text-values-and-colour/m-p/578802#M201714</guid>
      <dc:creator>alex_collins_in</dc:creator>
      <dc:date>2021-12-17T19:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter plot with text values and colour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scatter-plot-with-text-values-and-colour/m-p/578815#M201723</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;&lt;P&gt;To map the namespace to a number you can use an eval case like:&lt;/P&gt;&lt;P&gt;| eval NameIndex=case(NameSpace=="default",0, NameSpace=="argo",1, NameSpace=="kube-system",2, NameSpace=="AWS",3)&lt;BR /&gt;&lt;BR /&gt;The scatterplot colouring I'm not so sure, most of the charts have colour values in the XML, but I've not played with scatterplots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;R.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 23:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scatter-plot-with-text-values-and-colour/m-p/578815#M201723</guid>
      <dc:creator>Random_Walk</dc:creator>
      <dc:date>2021-12-17T23:51:16Z</dc:date>
    </item>
  </channel>
</rss>

