<?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 How to achieve a non numeric scatter plot on x and y? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-a-non-numeric-scatter-plot-on-x-and-y/m-p/472844#M133092</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have two text columns finding_id and device manufacturer, and a count of events containing both.&lt;/P&gt;

&lt;P&gt;I'd like a scatter chart of device.manufacturer on the y-axis, and finding_id on the x-axis, but everything seems to revert to a numerical axis?  &lt;/P&gt;

&lt;P&gt;Am I missing something?&lt;/P&gt;

&lt;P&gt;The below is from the stats page:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;count   finding_id  device.manufacturer
9       V-3086      Cisco
9       V-3034      Cisco
9       V-14717    Cisco
9       V-14667    Cisco
8       V-5618      Cisco
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 15 Apr 2020 14:19:37 GMT</pubDate>
    <dc:creator>keithdriver</dc:creator>
    <dc:date>2020-04-15T14:19:37Z</dc:date>
    <item>
      <title>How to achieve a non numeric scatter plot on x and y?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-a-non-numeric-scatter-plot-on-x-and-y/m-p/472844#M133092</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have two text columns finding_id and device manufacturer, and a count of events containing both.&lt;/P&gt;

&lt;P&gt;I'd like a scatter chart of device.manufacturer on the y-axis, and finding_id on the x-axis, but everything seems to revert to a numerical axis?  &lt;/P&gt;

&lt;P&gt;Am I missing something?&lt;/P&gt;

&lt;P&gt;The below is from the stats page:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;count   finding_id  device.manufacturer
9       V-3086      Cisco
9       V-3034      Cisco
9       V-14717    Cisco
9       V-14667    Cisco
8       V-5618      Cisco
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Apr 2020 14:19:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-a-non-numeric-scatter-plot-on-x-and-y/m-p/472844#M133092</guid>
      <dc:creator>keithdriver</dc:creator>
      <dc:date>2020-04-15T14:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve a non numeric scatter plot on x and y?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-a-non-numeric-scatter-plot-on-x-and-y/m-p/472845#M133093</link>
      <description>&lt;P&gt;Just use the &lt;CODE&gt;chart&lt;/CODE&gt; command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| chart count by finding_id device.manufacturer 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Flip the order of the by fields if you want them the other way.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 15:13:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-a-non-numeric-scatter-plot-on-x-and-y/m-p/472845#M133093</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2020-04-15T15:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve a non numeric scatter plot on x and y?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-a-non-numeric-scatter-plot-on-x-and-y/m-p/472846#M133094</link>
      <description>&lt;P&gt;Thanks. Unfortunately that didnt work.&lt;/P&gt;

&lt;P&gt;My query is now  &lt;/P&gt;

&lt;P&gt;| chart count  by finding_id ,device.manufacturer&lt;/P&gt;

&lt;P&gt;Statistics tab now shows the below, but the scatter plot X and Y axis labels are NSA-FLTR-20 and V-14707, and each axis is still numerical&lt;/P&gt;

&lt;P&gt;What I'd like is that the Y axis is a list of all devices, the X axis is a list of all findings, and the scatter plot shows counts at the intersection of the two&lt;/P&gt;

&lt;P&gt;device.manufacturer NSA-AUTH-025    NSA-FLTR-020    V-14667 V-14707&lt;BR /&gt;
3COM    1   1   1   1&lt;BR /&gt;
Brocade 0   5   0   0&lt;BR /&gt;
Check Point 0   0   3   0&lt;BR /&gt;
Cisco   4   1   9   8&lt;BR /&gt;
HP  0   1   1   1&lt;BR /&gt;
Huawei  3   0   1   1&lt;BR /&gt;
Juniper 2   2   2   1&lt;BR /&gt;
Palo Alto   1   2   2   0&lt;BR /&gt;
WatchGuard  0   0   1   0&lt;/P&gt;

&lt;P&gt;But scatter chart is still using &lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 16:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-a-non-numeric-scatter-plot-on-x-and-y/m-p/472846#M133094</guid>
      <dc:creator>keithdriver</dc:creator>
      <dc:date>2020-04-15T16:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve a non numeric scatter plot on x and y?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-a-non-numeric-scatter-plot-on-x-and-y/m-p/472847#M133095</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="device.manufacturer,NSA-AUTH-025,NSA-FLTR-020,V-14667,V-14707
3COM,1,1,1,1
Brocade,0,5,0,0
Check Point,0,0,3,0
Cisco,4,1,9,8
HP,0,1,1,1
Huawei,3,0,1,1
Juniper,2,2,2,1
Palo Alto,1,2,2,0
WatchGuard,0,0,1,0"
| multikv forceheader=1
| fields - _* linecount
| table device_manufacturer,NSA_AUTH_025,NSA_FLTR_020,V_14667,V_14707
| eval test=mvrange(0,2)
| mvexpand test
| streamstats count
| eval device_manufacturer=if(count % 2 = 0 , null(), device_manufacturer)
| foreach * [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; = if(isnull(device_manufacturer),NULL,'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;')]
| fields - test count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I use trick.&lt;BR /&gt;
try Viz&amp;gt;&amp;gt;Area Chart with Format &lt;CODE&gt;Null Values=Gap&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Area Chart"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8672iA26DA178C4A5536D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Area Chart" alt="Area Chart" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 20:50:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-a-non-numeric-scatter-plot-on-x-and-y/m-p/472847#M133095</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-15T20:50:09Z</dc:date>
    </item>
  </channel>
</rss>

