<?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 do I reorder columns in xyseries? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-reorder-columns-in-xyseries/m-p/308014#M19661</link>
    <description>&lt;P&gt;Splunk Enterprise 6.4.1.&lt;BR /&gt;
I am trying to create a single table that displays data like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                         Priority 1       Priority 2           Priority 3
  server         Count       Volume       Count    Volume      Count   Volume
server-1           123         2.34       10       .13         75      1.72
server-2           195         2.32       15       .19         174     1.93
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, using the xyseries command, the data is output like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;server             count:1    count:2  count:3   volume:1 volume:2   volume:3
server-1           123        10       75        2.34     .13        1.72
server-2           195        15       174       2.32     .19        1.93
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think we can live with the column headers looking like "count:1" etc, but is it possible to rearrange the columns so that the columns for count/volume for a specific priority are side-by-side?   This is the search I use to generate the table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo | stats count as count sum(filesize) as volume by priority, server | xyseries server priority count volume | fill null
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ideally, I'd like to change the column headers to be multiline like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Priority 1 
  count     
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Feb 2017 19:44:47 GMT</pubDate>
    <dc:creator>lyndac</dc:creator>
    <dc:date>2017-02-17T19:44:47Z</dc:date>
    <item>
      <title>How do I reorder columns in xyseries?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-reorder-columns-in-xyseries/m-p/308014#M19661</link>
      <description>&lt;P&gt;Splunk Enterprise 6.4.1.&lt;BR /&gt;
I am trying to create a single table that displays data like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                         Priority 1       Priority 2           Priority 3
  server         Count       Volume       Count    Volume      Count   Volume
server-1           123         2.34       10       .13         75      1.72
server-2           195         2.32       15       .19         174     1.93
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, using the xyseries command, the data is output like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;server             count:1    count:2  count:3   volume:1 volume:2   volume:3
server-1           123        10       75        2.34     .13        1.72
server-2           195        15       174       2.32     .19        1.93
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think we can live with the column headers looking like "count:1" etc, but is it possible to rearrange the columns so that the columns for count/volume for a specific priority are side-by-side?   This is the search I use to generate the table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo | stats count as count sum(filesize) as volume by priority, server | xyseries server priority count volume | fill null
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ideally, I'd like to change the column headers to be multiline like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Priority 1 
  count     
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Feb 2017 19:44:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-reorder-columns-in-xyseries/m-p/308014#M19661</guid>
      <dc:creator>lyndac</dc:creator>
      <dc:date>2017-02-17T19:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I reorder columns in xyseries?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-reorder-columns-in-xyseries/m-p/308015#M19662</link>
      <description>&lt;P&gt;Splunk doesn't support multiline headers. Try this workaround to see if this works for you&lt;BR /&gt;
&lt;STRONG&gt;Updated&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo | chart count as count sum(filesize) as volume by server priority  | rename "count: *" as "Priority *:Count" "volume: *" as "Priority *:Volume" | table server *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:00:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-reorder-columns-in-xyseries/m-p/308015#M19662</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-17T20:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I reorder columns in xyseries?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-reorder-columns-in-xyseries/m-p/308016#M19663</link>
      <description>&lt;P&gt;Works great!  As an aside, I was able to use the same rename command with my original search.  I didn't know you could use the wildcard in that way.  Very cool!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-reorder-columns-in-xyseries/m-p/308016#M19663</guid>
      <dc:creator>lyndac</dc:creator>
      <dc:date>2017-02-17T20:36:44Z</dc:date>
    </item>
  </channel>
</rss>

