<?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 get the values for the selected fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-values-for-the-selected-fields/m-p/381642#M172218</link>
    <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=qvmr_soc_r job_type=batch  | fields *vip* *snps* | fieldsummary maxvals=1| table field
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 27 Mar 2019 16:20:50 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2019-03-27T16:20:50Z</dc:date>
    <item>
      <title>How to get the values for the selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-values-for-the-selected-fields/m-p/381639#M172215</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;I have this query with me. &lt;/P&gt;

&lt;P&gt;index=qvmr_soc_r job_type=batch |stats dc(&lt;EM&gt;) as * | fields *vip&lt;/EM&gt; &lt;EM&gt;snps&lt;/EM&gt; | transpose&lt;/P&gt;

&lt;P&gt;Basically i'm checking the field names that matches with these vip and snps names. &lt;/P&gt;

&lt;P&gt;But this query is only returning the distinct count not the values of the fields. &lt;/P&gt;

&lt;P&gt;How to get these values for the specified fields. Any help would be appreciated. &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Maniteja&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:53:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-values-for-the-selected-fields/m-p/381639#M172215</guid>
      <dc:creator>Maniteja81</dc:creator>
      <dc:date>2020-09-29T23:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values for the selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-values-for-the-selected-fields/m-p/381640#M172216</link>
      <description>&lt;P&gt;You have to use fields before stats. something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=qvmr_soc_r job_type=batch |fields vip snps | stats dc(vip) as vip_dc_count dc(snps) as snps_dc_count |  transpose
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Mar 2019 13:04:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-values-for-the-selected-fields/m-p/381640#M172216</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-03-27T13:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values for the selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-values-for-the-selected-fields/m-p/381641#M172217</link>
      <description>&lt;P&gt;What you are looking for is  &lt;CODE&gt;| stats values(vip) as VIPs values(snps) as SNPS&lt;/CODE&gt; rather than  &lt;CODE&gt;dc()&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;This will give you the full list of distinct values in those fields as an multivalue field. Read &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Multivaluefunctions"&gt;here&lt;/A&gt; for more info.&lt;/P&gt;

&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 13:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-values-for-the-selected-fields/m-p/381641#M172217</guid>
      <dc:creator>aholzer</dc:creator>
      <dc:date>2019-03-27T13:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the values for the selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-values-for-the-selected-fields/m-p/381642#M172218</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=qvmr_soc_r job_type=batch  | fields *vip* *snps* | fieldsummary maxvals=1| table field
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Mar 2019 16:20:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-values-for-the-selected-fields/m-p/381642#M172218</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-03-27T16:20:50Z</dc:date>
    </item>
  </channel>
</rss>

