<?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 Modify X-axis with an interval from 0 to 100 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Modify-X-axis-with-an-interval-from-0-to-100/m-p/461499#M130156</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;
I'm new here,I would like to know how to modify the X-axis. I don't want to group by host or time, I want an interval from 0 to 100.&lt;BR /&gt;
On my Y-Axis I want to count to number of event who have a value between 10 and 20 on the x axis for exemple.&lt;BR /&gt;
I don't know if it's possible?&lt;/P&gt;

&lt;P&gt;Thanks in advance &lt;BR /&gt;
Rémy &lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2019 10:28:59 GMT</pubDate>
    <dc:creator>remyjuvenals</dc:creator>
    <dc:date>2019-12-13T10:28:59Z</dc:date>
    <item>
      <title>Modify X-axis with an interval from 0 to 100</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Modify-X-axis-with-an-interval-from-0-to-100/m-p/461499#M130156</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I'm new here,I would like to know how to modify the X-axis. I don't want to group by host or time, I want an interval from 0 to 100.&lt;BR /&gt;
On my Y-Axis I want to count to number of event who have a value between 10 and 20 on the x axis for exemple.&lt;BR /&gt;
I don't know if it's possible?&lt;/P&gt;

&lt;P&gt;Thanks in advance &lt;BR /&gt;
Rémy &lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 10:28:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Modify-X-axis-with-an-interval-from-0-to-100/m-p/461499#M130156</guid>
      <dc:creator>remyjuvenals</dc:creator>
      <dc:date>2019-12-13T10:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Modify X-axis with an interval from 0 to 100</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Modify-X-axis-with-an-interval-from-0-to-100/m-p/461500#M130157</link>
      <description>&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=101
| eval count=1
| accum count
| eval x_axis=count - 1
| eval value=random() % 11 + 10
| table x_axis value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H2&gt;This is simple&lt;/H2&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=2
| streamstats count
| eval count=if(count==2,100,1)
| makecontinuous count
| appendpipe 
    [| eval count=0
    | dedup count]
    | sort count
    | eval value=random() % 10 + 10
    | rename count as x_axis
    | table x_axis value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What's X-axis?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 17:58:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Modify-X-axis-with-an-interval-from-0-to-100/m-p/461500#M130157</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-13T17:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Modify X-axis with an interval from 0 to 100</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Modify-X-axis-with-an-interval-from-0-to-100/m-p/461501#M130158</link>
      <description>&lt;P&gt;@remyjuvenals in order for the community to assist you better please provide more details. Like what is your use case? What is your current query/field names etc.? What does the data look like? Please mask anonymize any sensitive information before posting.&lt;/P&gt;

&lt;P&gt;Following run anywhere example generates 100 rows with random count. It uses condition match for count values between 10 to 20. It makes remaining count as null.&lt;/P&gt;

&lt;P&gt;As per your question, it then uses appendcols with &lt;CODE&gt;mvrange()&lt;/CODE&gt; function to generate 1-100 series values for x-axis label.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=100 
| eval count=random(), count=substr(count,1,2) 
| eval count= case(count&amp;gt;=10 AND count&amp;lt;=20,count) 
| appendcols 
    [| makeresults 
    | fields - _time 
    | eval x_axis=mvrange(1,100,1) 
    | mvexpand x_axis] 
| table x_axis count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;While this is a run anywhere example based on our understanding of your question. For us to help you better you might have to provide further details as requested.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2019 00:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Modify-X-axis-with-an-interval-from-0-to-100/m-p/461501#M130158</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-12-14T00:54:32Z</dc:date>
    </item>
  </channel>
</rss>

