<?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: Changes in `values` function from 8.x version in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Changes-in-values-function-from-8-x-version/m-p/473231#M133186</link>
    <description>&lt;P&gt;@to4kawa thanks. We saw the doc and probably we missed something: can you show us the point in the doc answering our question? &lt;/P&gt;

&lt;P&gt;We don't understand how to refactor our query in order to be 8.x compatible.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2020 08:08:40 GMT</pubDate>
    <dc:creator>piefragnisp</dc:creator>
    <dc:date>2020-02-18T08:08:40Z</dc:date>
    <item>
      <title>Changes in `values` function from 8.x version</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Changes-in-values-function-from-8-x-version/m-p/473229#M133184</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;we are testing a 8.* of Splunk version using a docker image on a POC virtual machine to migrate our 7.3.4 dev cluster.&lt;/P&gt;

&lt;P&gt;We've noticed there is a change in &lt;CODE&gt;values&lt;/CODE&gt; function in &lt;CODE&gt;tstats&lt;/CODE&gt; command:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;7.3.4 version&lt;/STRONG&gt; the &lt;CODE&gt;values&lt;/CODE&gt; function can have no inputs params&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;8.x version&lt;/STRONG&gt; the &lt;CODE&gt;values()&lt;/CODE&gt; function must have an input param&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;so - for example - for a query like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| tstats values where index=our_index by fieldA, fieldB | rename fieldA as A, fieldB as B| where like(A,"%some_criteria%") OR like(A,"%some_criteria%") | dedup A | dedup B&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;we have some difficults understanding the equivalent search in a 8.x Splunk. We tried a query like this one:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| tstats values(fieldA), values(fieldB) where index=our_index by fieldA, fieldB | rename fieldA as A, fieldB as B| where like(A,"%some_criteria%") OR like(A,"%some_criteria%") | dedup A | dedup B&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;but we don't know if it's the right way because in the output we have two more columns:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;values(A)&lt;/LI&gt;
&lt;LI&gt;values(B)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;with the same values of columns A and B. Do you have any suggest for this particular case or any docs in order to study these changes?&lt;/P&gt;

&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 15:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Changes-in-values-function-from-8-x-version/m-p/473229#M133184</guid>
      <dc:creator>piefragnisp</dc:creator>
      <dc:date>2020-02-17T15:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Changes in `values` function from 8.x version</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Changes-in-values-function-from-8-x-version/m-p/473230#M133185</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Tstats"&gt;tstats v8&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.4/SearchReference/Tstats"&gt;tstats v7&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;changed&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 22:14:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Changes-in-values-function-from-8-x-version/m-p/473230#M133185</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-17T22:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Changes in `values` function from 8.x version</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Changes-in-values-function-from-8-x-version/m-p/473231#M133186</link>
      <description>&lt;P&gt;@to4kawa thanks. We saw the doc and probably we missed something: can you show us the point in the doc answering our question? &lt;/P&gt;

&lt;P&gt;We don't understand how to refactor our query in order to be 8.x compatible.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 08:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Changes-in-values-function-from-8-x-version/m-p/473231#M133186</guid>
      <dc:creator>piefragnisp</dc:creator>
      <dc:date>2020-02-18T08:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Changes in `values` function from 8.x version</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Changes-in-values-function-from-8-x-version/m-p/473232#M133187</link>
      <description>&lt;P&gt;both example #9 is easy to understand.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats values(fieldA) as A, values(fieldB) as B where index=our_index  | where like(A,"%some_criteria%") OR like(A,"%some_criteria%") 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;your query is like above.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 09:20:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Changes-in-values-function-from-8-x-version/m-p/473232#M133187</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-18T09:20:03Z</dc:date>
    </item>
  </channel>
</rss>

