<?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: using xyseries get the count and the values for each field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-xyseries-get-the-count-and-the-values-for-each/m-p/588711#M205020</link>
    <description>&lt;P&gt;Might be easier if you take a step back - how did you generate these values? There might be a way to limit it to the top 3 values before grouping them with values()&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 11:52:42 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-03-11T11:52:42Z</dc:date>
    <item>
      <title>How do I use xyseries get the count and the values for each field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-xyseries-get-the-count-and-the-values-for-each/m-p/588708#M205017</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following result in place with 30min bucket using stats values() and then xyseries&amp;nbsp;&lt;/P&gt;
&lt;P&gt;time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; field1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;field2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; field3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;field4&lt;/P&gt;
&lt;TABLE width="510px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="52.5078px" height="25px"&gt;05:30&lt;/TD&gt;
&lt;TD width="132.125px" height="25px"&gt;4,10,11,12,30&lt;/TD&gt;
&lt;TD width="112.922px" height="25px"&gt;1,13,14,9,8,7&lt;/TD&gt;
&lt;TD width="84.125px" height="25px"&gt;5,7,3,8,9,1,55&lt;/TD&gt;
&lt;TD width="141.727px" height="25px"&gt;23,24,17,18,19&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.5078px" height="25px"&gt;06:00&lt;/TD&gt;
&lt;TD width="132.125px" height="25px"&gt;19,10,11,12,30&lt;/TD&gt;
&lt;TD width="112.922px" height="25px"&gt;12,3,14,9,8,7&lt;/TD&gt;
&lt;TD width="84.125px" height="25px"&gt;1,17,3,8,1,34&lt;/TD&gt;
&lt;TD width="141.727px" height="25px"&gt;22,2,25,17,18,19&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.5078px" height="25px"&gt;06:30&lt;/TD&gt;
&lt;TD width="132.125px" height="25px"&gt;20,10,11,12,55&lt;/TD&gt;
&lt;TD width="112.922px" height="25px"&gt;11,13,14,9,18,7&lt;/TD&gt;
&lt;TD width="84.125px" height="25px"&gt;10,7,3,8,9,1,4&lt;/TD&gt;
&lt;TD width="141.727px" height="25px"&gt;23,24,26,1,18,49&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.5078px" height="25px"&gt;07:00&lt;/TD&gt;
&lt;TD width="132.125px" height="25px"&gt;21,10,11,12,44&lt;/TD&gt;
&lt;TD width="112.922px" height="25px"&gt;12,13,17,9,7&lt;/TD&gt;
&lt;TD width="84.125px" height="25px"&gt;6,7,3,9,1,23&lt;/TD&gt;
&lt;TD width="141.727px" height="25px"&gt;23,24,25,17,18,19&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.5078px" height="25px"&gt;07:30&lt;/TD&gt;
&lt;TD width="132.125px" height="25px"&gt;31,10,11,12,50&lt;/TD&gt;
&lt;TD width="112.922px" height="25px"&gt;1,13,14,9,8,7&lt;/TD&gt;
&lt;TD width="84.125px" height="25px"&gt;5,7,3,8,9,11&lt;/TD&gt;
&lt;TD width="141.727px" height="25px"&gt;23,24,25,17,18,19&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.5078px" height="25px"&gt;08:00&lt;/TD&gt;
&lt;TD width="132.125px" height="25px"&gt;1,10,11,12,30,88&lt;/TD&gt;
&lt;TD width="112.922px" height="25px"&gt;12,13,14,9,81&lt;/TD&gt;
&lt;TD width="84.125px" height="25px"&gt;5,7,3,8,9,17&lt;/TD&gt;
&lt;TD width="141.727px" height="25px"&gt;23,24,25,17,18,19&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.5078px" height="25px"&gt;08:30&lt;/TD&gt;
&lt;TD width="132.125px" height="25px"&gt;1,10,11,12,30,99&lt;/TD&gt;
&lt;TD width="112.922px" height="25px"&gt;12,13,14,9,81&lt;/TD&gt;
&lt;TD width="84.125px" height="25px"&gt;5,7,3,8,9,18&lt;/TD&gt;
&lt;TD width="141.727px" height="25px"&gt;23,24,25,17,18,19&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.5078px" height="25px"&gt;09:00&lt;/TD&gt;
&lt;TD width="132.125px" height="25px"&gt;1,11,12,30,23&lt;/TD&gt;
&lt;TD width="112.922px" height="25px"&gt;11,1,14,9,7&lt;/TD&gt;
&lt;TD width="84.125px" height="25px"&gt;10,7,3,8,9,18&lt;/TD&gt;
&lt;TD width="141.727px" height="25px"&gt;23,24,25,17,18,19&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="52.5078px" height="25px"&gt;09:30&lt;/TD&gt;
&lt;TD width="132.125px" height="25px"&gt;1,10,11,12,300&lt;/TD&gt;
&lt;TD width="112.922px" height="25px"&gt;12,13,4,9,8,7&lt;/TD&gt;
&lt;TD width="84.125px" height="25px"&gt;4,7,3,8,9,1&lt;/TD&gt;
&lt;TD width="141.727px" height="25px"&gt;23,24,25,17,18,19&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently the result shows all the values for each field.&lt;BR /&gt;What I am looking here is the top 3 values which has maximum count for each field, not sure how to pull that result.&lt;/P&gt;
&lt;P&gt;Request someone to guide.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 05:14:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-xyseries-get-the-count-and-the-values-for-each/m-p/588708#M205017</guid>
      <dc:creator>bijodev1</dc:creator>
      <dc:date>2022-03-12T05:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: using xyseries get the count and the values for each field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-xyseries-get-the-count-and-the-values-for-each/m-p/588711#M205020</link>
      <description>&lt;P&gt;Might be easier if you take a step back - how did you generate these values? There might be a way to limit it to the top 3 values before grouping them with values()&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 11:52:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-xyseries-get-the-count-and-the-values-for-each/m-p/588711#M205020</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-11T11:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: using xyseries get the count and the values for each field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-xyseries-get-the-count-and-the-values-for-each/m-p/588716#M205022</link>
      <description>&lt;P&gt;it was like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;mysearch |&amp;nbsp;bucket _time span=10min&lt;BR /&gt;| stats delim="," values(result) AS result count by _time xyz&lt;BR /&gt;| nomv result&lt;BR /&gt;| sort -count&lt;BR /&gt;| dedup _time xyz&lt;BR /&gt;| sort _time&lt;BR /&gt;| xyseries _time xyz result&lt;BR /&gt;&lt;BR /&gt;Note : xyz contains these field1 , field2, field3, field4&lt;/P&gt;&lt;P&gt;also is it possible to append with the values - with its count. like for example :&lt;/P&gt;&lt;P&gt;time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; field1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;field2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; field3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;field4&lt;/P&gt;&lt;TABLE width="510px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="52.5078px" height="25px"&gt;05:30&lt;/TD&gt;&lt;TD width="149.18px" height="25px"&gt;4(100),10(40)&lt;/TD&gt;&lt;TD width="103.32px" height="25px"&gt;1(100),13(40),14(30)&lt;/TD&gt;&lt;TD width="106.43px" height="25px"&gt;5(80),7(60),3(50)&lt;/TD&gt;&lt;TD width="119.422px" height="25px"&gt;23(100),24(80),17(50)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The one in brackets shows the count per each value.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 12:27:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-xyseries-get-the-count-and-the-values-for-each/m-p/588716#M205022</guid>
      <dc:creator>bijodev1</dc:creator>
      <dc:date>2022-03-11T12:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: using xyseries get the count and the values for each field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-xyseries-get-the-count-and-the-values-for-each/m-p/588726#M205025</link>
      <description>&lt;P&gt;Does something like this work for you?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mysearch
| bin _time span=10min
| stats count by _time xyz result
| sort _time xyz -count
| streamstats count as rank global=f by _time xyz
| where rank &amp;lt; 4
| eval result=result."(".count.")"
| stats delim=", " values(result) AS result by _time xyz
| nomv result
| xyseries _time xyz result&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Mar 2022 12:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-xyseries-get-the-count-and-the-values-for-each/m-p/588726#M205025</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-11T12:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: using xyseries get the count and the values for each field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-xyseries-get-the-count-and-the-values-for-each/m-p/588738#M205027</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Thank you so much, it worked as expected.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 14:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-xyseries-get-the-count-and-the-values-for-each/m-p/588738#M205027</guid>
      <dc:creator>bijodev1</dc:creator>
      <dc:date>2022-03-11T14:47:09Z</dc:date>
    </item>
  </channel>
</rss>

