<?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 Re: Build a chart of multiple data series in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Build-a-chart-of-multiple-data-series/m-p/44697#M10556</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thank you very much, you perfectly answered to my question!&lt;/P&gt;

&lt;P&gt;Guilhem&lt;/P&gt;</description>
    <pubDate>Wed, 27 Feb 2013 12:52:26 GMT</pubDate>
    <dc:creator>guilmxm</dc:creator>
    <dc:date>2013-02-27T12:52:26Z</dc:date>
    <item>
      <title>Build a chart of multiple data series</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Build-a-chart-of-multiple-data-series/m-p/44695#M10554</link>
      <description>&lt;P&gt;Hi to everyone, &lt;/P&gt;

&lt;P&gt;I am designing an application where my users will potentially need to be able to generate a chart with multiple data series. (depending on their own selection and various options available)&lt;/P&gt;

&lt;P&gt;I searched in different posts and i followed this doc with success:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Search/Chartmultipledataseries"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Search/Chartmultipledataseries&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This works good, but still i have a small issue with the chart being created in the dashboard, the time period is technically correct but not being shown as would generates the timechart command. (each date section is being shown so too much data with more than a few hours)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;A correct chart generated with timechart:&lt;/STRONG&gt;&lt;BR /&gt;
&lt;IMG src="http://splunk-base.splunk.com//storage/S%C3%A9lection_001.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;A chart generating with the stat command with multiple series:&lt;/STRONG&gt;&lt;BR /&gt;
&lt;IMG src="http://splunk-base.splunk.com//storage/S%C3%A9lection_002.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;My command is the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="rls_index" sourcetype="rls_source" $hostname$ $monitor$ $monitor_label$
bucket _time span=1h | stats max(value) As ValMax, min(value) As ValMin by _time,monitor_label |
eval s1="max min" | makemv s1 | mvexpand s1 | eval yval=case(s1=="max",ValMax,s1=="min",ValMin) | eval series=monitor_label+":"+s1 | convert ctime(_time) as time | xyseries time,series,yval
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I needed to add the section "convert ctime(_time) as time" to get a shorter and more readable time format.&lt;/P&gt;

&lt;P&gt;Does anyone knows how to generate a chart with the time period being correctly shown like with timechart ?&lt;/P&gt;

&lt;P&gt;I had to use the bucket command to limit the amount of data generated, i also would like to put a timerange condition like the timechart command automatically does ? (something like if more than 1 day then bucket 1 hour and so on)&lt;/P&gt;

&lt;P&gt;Thank you in advance for any help you could provide.&lt;/P&gt;

&lt;P&gt;Long live to Splunk ^^&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 01:05:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Build-a-chart-of-multiple-data-series/m-p/44695#M10554</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2013-02-27T01:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Build a chart of multiple data series</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Build-a-chart-of-multiple-data-series/m-p/44696#M10555</link>
      <description>&lt;P&gt;Use _time in xyseries and add &lt;CODE&gt;... | makecontinuous _time&lt;/CODE&gt; to the end. You don't need to convert _time beforehand.&lt;/P&gt;

&lt;P&gt;The charting stuff makes the x-axis labels 'pretty' if it contains regularly intervaled epoch values&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 06:52:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Build-a-chart-of-multiple-data-series/m-p/44696#M10555</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-02-27T06:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Build a chart of multiple data series</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Build-a-chart-of-multiple-data-series/m-p/44697#M10556</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thank you very much, you perfectly answered to my question!&lt;/P&gt;

&lt;P&gt;Guilhem&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 12:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Build-a-chart-of-multiple-data-series/m-p/44697#M10556</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2013-02-27T12:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Build a chart of multiple data series</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Build-a-chart-of-multiple-data-series/m-p/44698#M10557</link>
      <description>&lt;P&gt;Thanks Guilhem. Accepting the answer is the usual way to award rep (you dont have to spend your own)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 14:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Build-a-chart-of-multiple-data-series/m-p/44698#M10557</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-02-27T14:45:55Z</dc:date>
    </item>
  </channel>
</rss>

