<?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: Clarification regarding pivot command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212293#M62136</link>
    <description>&lt;P&gt;Lastly, is count(All_Assets) just getting a count of the instances of the field "All_Assets" within the data? Or is All_Assets a string? &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:09:57 GMT</pubDate>
    <dc:creator>Justin1224</dc:creator>
    <dc:date>2020-09-29T11:09:57Z</dc:date>
    <item>
      <title>Clarification regarding pivot command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212285#M62128</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;

&lt;P&gt;I've just encountered the pivot command for the first time and after reading through the Splunk page on it, I am still confused as to what it does. If it helps, here is my search query:&lt;/P&gt;

&lt;P&gt;| pivot Identity_Management All_Assets count(All_Assets) AS "count" SPLITROW category AS "category" | sort - count&lt;/P&gt;

&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:08:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212285#M62128</guid>
      <dc:creator>Justin1224</dc:creator>
      <dc:date>2020-09-29T11:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding pivot command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212286#M62129</link>
      <description>&lt;P&gt;| pivot Identity_Management All_Assets count(All_Assets) AS "count" SPLITROW category AS "category" | sort - count&lt;/P&gt;

&lt;P&gt;as per my understandings, &lt;BR /&gt;
pivot Identity_Management All_Assets ---- it uses the data model.&lt;BR /&gt;
and, it counts all assets as count, split rows category wise and sorting by count. &lt;/P&gt;

&lt;P&gt;let us know if you have any other questions.&lt;BR /&gt;
&lt;STRONG&gt;update -&lt;/STRONG&gt;  to add the photo, i edited this answer and attached it. &lt;BR /&gt;
Fundamentally this pivot command is a wrapper around stats and xyseries. It does not add new behavior, but it may be easier to use if you are already familiar with how Pivot works.&lt;BR /&gt;
so, assume pivot as a simple command like stats. you can see these two example pivot charts, i added the photo below - &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Pivot" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Pivot&lt;/A&gt;&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/161172-pivot.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;best regards,&lt;BR /&gt;
Sekar&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212286#M62129</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-09-29T11:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding pivot command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212287#M62130</link>
      <description>&lt;P&gt;Thank you very much for your answer!&lt;/P&gt;

&lt;P&gt;I'm still a little confused as to what pivot does in this query. I have read the documentation on it but am still unsure. &lt;/P&gt;

&lt;P&gt;Also, to recap what you said to see if I understand: the query is using the datamodel named "Identity_Management" and counts the instances of the field "All_Assets" and names this count as "count". (I'm unsure of what SPLITROW does.) Then sorts descending by field count.&lt;/P&gt;

&lt;P&gt;Is that correct? Also, could you explain what the SPLITROW part does in more detail, I'm still unsure of what it does.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:09:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212287#M62130</guid>
      <dc:creator>Justin1224</dc:creator>
      <dc:date>2020-09-29T11:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding pivot command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212288#M62131</link>
      <description>&lt;P&gt;Hi Justin, i edited the answer and updated little more.. added a photo, for easy understanding.. &lt;BR /&gt;
for splitrows, can you check this once please.. &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Pivot"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Pivot&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:10:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212288#M62131</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-26T16:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding pivot command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212289#M62132</link>
      <description>&lt;P&gt;So to clarify, pivot doesn't change any of the data shown, it's just a different method to search with? &lt;/P&gt;

&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212289#M62132</guid>
      <dc:creator>Justin1224</dc:creator>
      <dc:date>2016-09-26T16:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding pivot command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212290#M62133</link>
      <description>&lt;P&gt;yes, exactly. Pivot does not change anything. like pie-chart, single value dashboard, pivot just creates a dashboard. thats it. &lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 17:11:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212290#M62133</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-26T17:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding pivot command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212291#M62134</link>
      <description>&lt;P&gt;Ok awesome thank you so much for your help. &lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 20:35:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212291#M62134</guid>
      <dc:creator>Justin1224</dc:creator>
      <dc:date>2016-09-26T20:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding pivot command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212292#M62135</link>
      <description>&lt;P&gt;Sorry, one last question. In your original answer you said, "it uses the data model.&lt;BR /&gt;
and, it counts all assets as count." What datamodel is it using? What I mean is, what part of the search query specifies the datamodel? Is it  Identity_Management or All_Assets? Or both? Thanks again&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:09:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212292#M62135</guid>
      <dc:creator>Justin1224</dc:creator>
      <dc:date>2020-09-29T11:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding pivot command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212293#M62136</link>
      <description>&lt;P&gt;Lastly, is count(All_Assets) just getting a count of the instances of the field "All_Assets" within the data? Or is All_Assets a string? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212293#M62136</guid>
      <dc:creator>Justin1224</dc:creator>
      <dc:date>2020-09-29T11:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding pivot command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212294#M62137</link>
      <description>&lt;P&gt;Sorry one final question. Why is the as capitalized (AS)? I thought that when "as" is in a search it renames a field as something else. But what does it does when it is capitalized?&lt;/P&gt;

&lt;P&gt;Thank you again and sorry for all the questions&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 22:21:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212294#M62137</guid>
      <dc:creator>Justin1224</dc:creator>
      <dc:date>2016-09-26T22:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding pivot command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212295#M62138</link>
      <description>&lt;P&gt;Hi, AS is capitalized be cause of splunk 's search syntax.&lt;/P&gt;

&lt;P&gt;For example, on search bar, if I search for "John or Tom" (without double quotes), splunk will search as it is..or, splunk will search "John or Tom".&lt;BR /&gt;
If I search for "John OR Tom", this will be a OR search.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 04:41:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212295#M62138</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-27T04:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding pivot command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212296#M62139</link>
      <description>&lt;P&gt;So it's the same? For example, I've seen search queries that have had in them: "dc(foo) as blah". And that query got a distinct count of the instances of the field foo and renamed it as blah. So you're saying that if the search was instead: "dc(foo) AS blah" it would do the exact same thing?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 13:50:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Clarification-regarding-pivot-command/m-p/212296#M62139</guid>
      <dc:creator>Justin1224</dc:creator>
      <dc:date>2016-09-27T13:50:18Z</dc:date>
    </item>
  </channel>
</rss>

