<?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 whose x axis defaults to an incrementing index/count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Scatter-plot-whose-x-axis-defaults-to-an-incrementing-index/m-p/439199#M124958</link>
    <description>&lt;P&gt;In Excel, it's possible to create a scatter plot and only feed in one column of data and the X axis will default as a count/frequency, incrementing from 0 to the number of values/rows being plotted. Is the same thing possible in Splunk? I'd like to feed in one field for the Y axis and have the X axis default to 0, 1, 2, 3, etc.&lt;/P&gt;</description>
    <pubDate>Sun, 05 May 2019 13:11:40 GMT</pubDate>
    <dc:creator>chashi</dc:creator>
    <dc:date>2019-05-05T13:11:40Z</dc:date>
    <item>
      <title>Scatter plot whose x axis defaults to an incrementing index/count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scatter-plot-whose-x-axis-defaults-to-an-incrementing-index/m-p/439199#M124958</link>
      <description>&lt;P&gt;In Excel, it's possible to create a scatter plot and only feed in one column of data and the X axis will default as a count/frequency, incrementing from 0 to the number of values/rows being plotted. Is the same thing possible in Splunk? I'd like to feed in one field for the Y axis and have the X axis default to 0, 1, 2, 3, etc.&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2019 13:11:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scatter-plot-whose-x-axis-defaults-to-an-incrementing-index/m-p/439199#M124958</guid>
      <dc:creator>chashi</dc:creator>
      <dc:date>2019-05-05T13:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter plot whose x axis defaults to an incrementing index/count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scatter-plot-whose-x-axis-defaults-to-an-incrementing-index/m-p/439200#M124959</link>
      <description>&lt;P&gt;@chashi instead of performing x-axis aggregation using stats, you can use streamstats to create a counter &lt;CODE&gt;| streamstats count as sno&lt;/CODE&gt;. Try the following run anywhere example using Splunk's internal index.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" sourcetype=splunkd log_level!=INFO NOT (component IN ("Metrics","PeriodicHealthReporter"))
| eval event_message=substr(event_message,1,30)
| stats count by component event_message
| streamstats count as sno
| stats last(sno) as "X-Axis" max(count) as "Y-Axis" by component event_message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to show all data labels on x-axis with interval of 1, you can add the following Simple XML configuration to you chart for x-axis label major unit.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.axisLabelsX.majorUnit"&amp;gt;1&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 05 May 2019 17:34:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scatter-plot-whose-x-axis-defaults-to-an-incrementing-index/m-p/439200#M124959</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-05-05T17:34:13Z</dc:date>
    </item>
  </channel>
</rss>

