<?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: how to display multiple field values from different searches in pie chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-display-multiple-field-values-from-different-searches-in/m-p/543672#M154002</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225796"&gt;@sbollam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using strictly Simple XML, you'll need to use separate searches and standalone pie charts as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;suggested.&lt;/P&gt;&lt;P&gt;You can also use CSS to manipulate the dashboard display. I suggest posting a new question in an appropriate category for more information on using CSS to manipulate trellis output in dashboards.&lt;/P&gt;</description>
    <pubDate>Sat, 13 Mar 2021 18:55:41 GMT</pubDate>
    <dc:creator>tscroggins</dc:creator>
    <dc:date>2021-03-13T18:55:41Z</dc:date>
    <item>
      <title>how to display multiple field values from different searches in pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-display-multiple-field-values-from-different-searches-in/m-p/542553#M153697</link>
      <description>&lt;P&gt;I have following query to display the results in pie chart. Problem here is I could not see the all the values in the pie chart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;index=dummy ticket_number="*" sourcetype="tickets"&lt;BR /&gt;| eval status= "incident_" + status&lt;BR /&gt;| stats first(opened_at) as ticket_openedAt latest(status) as ticketStatus by ticket_number&lt;BR /&gt;| where NOT ticketStatus IN("ticket_Resolved", "ticket_Canceled", "ticket_Closed")&lt;BR /&gt;| eval openTime = strptime(ticket_openedAt, "%Y-%m-%d %H:%M:%S"), currentTime=now(), days = round((currentTime - openTime)/86400, 0)&lt;BR /&gt;| where days &amp;gt; 5&lt;BR /&gt;| stats count as ticket_count by ticketStatus&lt;BR /&gt;| appendcols&lt;BR /&gt;[ search index=dummy problem_number="*" sourcetype="problem"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | eval status = "problem_" + status&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | stats first(opened_at) as problemOpenedAt latest(status) as problemStatus by problem_number&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | where NOT problemStatus IN("problem_Resolved", "request_Closed")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | eval openTime = strptime(requestOpenedAt, "%Y-%m-%d %H:%M:%S"), currentTime=now(), days = round((currentTime - openTime)/86400, 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | where days &amp;gt; 5&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | stats count as request_count by problemStatus ]&lt;BR /&gt;| appendcols&lt;BR /&gt;[ search index=dummy issue_number="*" sourcetype="issue"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | eval status= "problem_" + status&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | stats first(opened_at) as issueOpenedAt latest(status) as issueStatus by issue_number&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | where NOT issueStatus IN("problem_Resolved", "problem_Closed Complete")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | eval openTime = strptime(problemOpenedAt, "%Y-%m-%d %H:%M:%S"), currentTime=now(), days = round((currentTime - openTime)/86400, 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | where days &amp;gt; 5&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | stats count as problem_count by issueStatus ]&lt;BR /&gt;| transpose&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I would require your help in displaying the incident_count by incidentStatus, problem_count by problemStatus and issue_count by issueStatus in the pie chart. Also, is there a way to optimize this search&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 13:44:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-display-multiple-field-values-from-different-searches-in/m-p/542553#M153697</guid>
      <dc:creator>sbollam</dc:creator>
      <dc:date>2021-03-05T13:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to display multiple field values from different searches in pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-display-multiple-field-values-from-different-searches-in/m-p/542567#M153699</link>
      <description>&lt;P&gt;That's not how pie charts work.&amp;nbsp; They're designed to present a single series of data.&amp;nbsp; If the Statistics tab of your search results shows more than 2 columns then you can't use a pie chart.&amp;nbsp; Based on that, each subsearch in this query should be a separate pie.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 15:11:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-display-multiple-field-values-from-different-searches-in/m-p/542567#M153699</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-03-05T15:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to display multiple field values from different searches in pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-display-multiple-field-values-from-different-searches-in/m-p/542706#M153725</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225796"&gt;@sbollam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With trellis enabled, you can include a split-by field in addition to a category field.&lt;/P&gt;&lt;P&gt;For example, here's a reduced version of your search:&lt;/P&gt;&lt;P&gt;index=dummy ((sourcetype=tickets ticket_number=*) OR (sourcetype=problem problem_number=*) OR (sourcetype=issue issue_number=*))&lt;BR /&gt;| eval number=coalesce(ticket_number, problem_number, issue_number)&lt;BR /&gt;| stats first(opened_at) as opened_at first(status) as status by sourcetype number&lt;BR /&gt;| search (sourcetype=tickets NOT status IN (Resolved Canceled Cancelled Closed)) OR (sourcetype=problem NOT status IN (Resolved Closed)) OR (sourcetype=issue NOT status IN (Resolved "Closed Complete"))&lt;BR /&gt;| where strptime(opened_at, "%F %T")&amp;lt;relative_time(now(), "-5d")&lt;BR /&gt;| stats count by sourcetype status&lt;/P&gt;&lt;P&gt;On the Visualization tab, select the pie chart, and enable trellis and split by sourcetype. You should see three pie charts--issue, problem, and tickets--with counts for all status values not excluded by the search command.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 21:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-display-multiple-field-values-from-different-searches-in/m-p/542706#M153725</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2021-03-06T21:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to display multiple field values from different searches in pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-display-multiple-field-values-from-different-searches-in/m-p/543053#M153831</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/49493"&gt;@tscroggins&lt;/a&gt;,&amp;nbsp;Thank you I can go with this approach and it looks good. But the problem here is when I update the trellis, all the three pie charts are aligned to the left side of the panel, Also I cannot increase the size the of the trellis to adjust to the entire panel, I mean size of the pie chart. I tried options medium, small, large but it did not work. How can I increase size of the trellis and adjust the float to the center using style&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Mar 2021 15:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-display-multiple-field-values-from-different-searches-in/m-p/543053#M153831</guid>
      <dc:creator>sbollam</dc:creator>
      <dc:date>2021-03-09T15:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to display multiple field values from different searches in pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-display-multiple-field-values-from-different-searches-in/m-p/543672#M154002</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225796"&gt;@sbollam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using strictly Simple XML, you'll need to use separate searches and standalone pie charts as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;suggested.&lt;/P&gt;&lt;P&gt;You can also use CSS to manipulate the dashboard display. I suggest posting a new question in an appropriate category for more information on using CSS to manipulate trellis output in dashboards.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 18:55:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-display-multiple-field-values-from-different-searches-in/m-p/543672#M154002</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2021-03-13T18:55:41Z</dc:date>
    </item>
  </channel>
</rss>

