<?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 timechart help: split all by host in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-help-split-all-by-host/m-p/23744#M894</link>
    <description>&lt;P&gt;I'm having trouble using timechart for multiple hosts. Here's what I want to do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wmi" host="hostprefix*" (wmi_type=CPUTime OR wmi_type=NET OR wmi_type=Memory) | kv | fields wmi_type,host,PercentProcessorTime,Contexts,AvailableMBytes | timechart max(AvailableMBytes) by host | max(PercentProcessorTime) by host | timechart max(Context) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That doesn't work. "Fields missing" on the second two timechart commands. Changing the order shows it isn't an issue with the data. So I've tried this, and I get the error "Error in 'timechart' command: When you specify a split-by field, only single functions applied to a non-wildcarded data field are allowed."&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wmi" host="hostprefix*" (wmi_type=CPUTime OR wmi_type=NET OR wmi_type=Memory) | kv | fields wmi_type,host,PercentProcessorTime,Contexts,AvailableMBytes | timechart max(AvailableMBytes), max(Context), max(PercentProcessorTime) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've also tried the following, which returns the error "Error in 'timechart' command: The argument 'max(Context)' is invalid."&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wmi" host="hostprefix*" (wmi_type=CPUTime OR wmi_type=NET OR wmi_type=Memory) | kv | fields wmi_type,host,PercentProcessorTime,Contexts,AvailableMBytes | timechart max(AvailableMBytes) by host, max(Context) by host, max(PercentProcessorTime) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Why is that? I truly want to split all three items by host. I can have three different graphs, but that isn't really what I want.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jan 2011 03:54:05 GMT</pubDate>
    <dc:creator>tedder</dc:creator>
    <dc:date>2011-01-11T03:54:05Z</dc:date>
    <item>
      <title>timechart help: split all by host</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-help-split-all-by-host/m-p/23744#M894</link>
      <description>&lt;P&gt;I'm having trouble using timechart for multiple hosts. Here's what I want to do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wmi" host="hostprefix*" (wmi_type=CPUTime OR wmi_type=NET OR wmi_type=Memory) | kv | fields wmi_type,host,PercentProcessorTime,Contexts,AvailableMBytes | timechart max(AvailableMBytes) by host | max(PercentProcessorTime) by host | timechart max(Context) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That doesn't work. "Fields missing" on the second two timechart commands. Changing the order shows it isn't an issue with the data. So I've tried this, and I get the error "Error in 'timechart' command: When you specify a split-by field, only single functions applied to a non-wildcarded data field are allowed."&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wmi" host="hostprefix*" (wmi_type=CPUTime OR wmi_type=NET OR wmi_type=Memory) | kv | fields wmi_type,host,PercentProcessorTime,Contexts,AvailableMBytes | timechart max(AvailableMBytes), max(Context), max(PercentProcessorTime) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've also tried the following, which returns the error "Error in 'timechart' command: The argument 'max(Context)' is invalid."&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wmi" host="hostprefix*" (wmi_type=CPUTime OR wmi_type=NET OR wmi_type=Memory) | kv | fields wmi_type,host,PercentProcessorTime,Contexts,AvailableMBytes | timechart max(AvailableMBytes) by host, max(Context) by host, max(PercentProcessorTime) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Why is that? I truly want to split all three items by host. I can have three different graphs, but that isn't really what I want.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2011 03:54:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-help-split-all-by-host/m-p/23744#M894</guid>
      <dc:creator>tedder</dc:creator>
      <dc:date>2011-01-11T03:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: timechart help: split all by host</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-help-split-all-by-host/m-p/23745#M895</link>
      <description>&lt;P&gt;Unfortunately, with timechart, if you specify a field to split by, you can not specify more than one item to graph.  This is because, when you split by a field, the distinct values of that field become the column/field names.  In essense you want to produce a graph with 3 axis (time, host, and AvailableMBytes/Context/PercentProcessorTime), but we can only produce 2D tables and charts.&lt;/P&gt;

&lt;P&gt;You could try doing this (basically flattening the 3rd axis together with the host field):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wmi" host="hostprefix*" (wmi_type=CPUTime OR wmi_type=NET OR wmi_type=Memory)
| kv
| fields wmi_type,host,PercentProcessorTime,Contexts,AvailableMBytes
| eval pivot = "PercentProcessorTime;Contexts;AvailableMBytes"
| makemv pivot delim=";"
| mvexpand pivot
| eval x=if(pivot="PercentProcessorTime",PercentProcessorTime,if(pivot="Contexts",Contexts,AvailableMBytes))
| eval host = pivot . "-" . host
| timechart max(x) by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jan 2011 03:06:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-help-split-all-by-host/m-p/23745#M895</guid>
      <dc:creator>steveyz</dc:creator>
      <dc:date>2011-01-12T03:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: timechart help: split all by host</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-help-split-all-by-host/m-p/23746#M896</link>
      <description>&lt;P&gt;the one minor bit:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval host = pivot . "-" host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval host = pivot . "-" . host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But that works!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2011 06:05:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-help-split-all-by-host/m-p/23746#M896</guid>
      <dc:creator>tedder</dc:creator>
      <dc:date>2011-01-13T06:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: timechart help: split all by host</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-help-split-all-by-host/m-p/23747#M897</link>
      <description>&lt;P&gt;This &lt;A href="http://www.splunk.com/base/Documentation/4.1.6/User/ReportOfMultipleDataSeries"&gt;http://www.splunk.com/base/Documentation/4.1.6/User/ReportOfMultipleDataSeries&lt;/A&gt; shows a slightly different way of doing it.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2011 15:15:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-help-split-all-by-host/m-p/23747#M897</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-01-13T15:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: timechart help: split all by host</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-help-split-all-by-host/m-p/23748#M898</link>
      <description>&lt;P&gt;By the way, in 4.2, which will be released in the near future, you will be able to do multi-series split-by within chart or timechart&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2011 13:57:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/timechart-help-split-all-by-host/m-p/23748#M898</guid>
      <dc:creator>steveyz</dc:creator>
      <dc:date>2011-01-20T13:57:09Z</dc:date>
    </item>
  </channel>
</rss>

