<?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: stats values and data not aligning in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-stats-values-and-data-not-aligning/m-p/601570#M209364</link>
    <description>&lt;P&gt;values() shows the unique values sorted in lexicographical order - if you want to maintain a one-to-one correspondence use list() instead of values() however this does not dedup the values so you may end up with duplicates.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2022 14:21:21 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-06-13T14:21:21Z</dc:date>
    <item>
      <title>Why are stats values and data not aligning?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-stats-values-and-data-not-aligning/m-p/601567#M209362</link>
      <description>&lt;P&gt;In this scenario, each HOST_NAME has many HOME_LOCATIONS. Each HOME_LOCATION has unique info - in this case, the RDBMS_VERSION and the DATABASE_RELEASE.&lt;/P&gt;
&lt;P&gt;I am trying to produce a simple statistics table that shows each unique HOME_LOCATION (and accompanying info) for each HOST_NAME.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--------------------&lt;/P&gt;
&lt;P&gt;When I run the below (1st screen shot) the data is aligned as I'd expect it to&lt;/P&gt;
&lt;P&gt;| stats values(HOME_LOCATION) values(RDBMS_VERSION) by HOST_NAME&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2 fields.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20060iD376D2559EFE7C87/image-size/large?v=v2&amp;amp;px=999" role="button" title="2 fields.png" alt="2 fields.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When I run the below (2nd screen shot) and add the third values field in red, the data becomes misaligned for some rows&lt;/P&gt;
&lt;P&gt;| stats values(HOME_LOCATION) values(RDBMS_VERSION) &lt;FONT color="#FF0000"&gt;values(DATABASE_RELEASE)&lt;/FONT&gt; by HOST_NAME&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3 fields.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20062i16FD603D552BDAF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="3 fields.png" alt="3 fields.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What am I missing or doing incorrectly?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 20:27:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-stats-values-and-data-not-aligning/m-p/601567#M209362</guid>
      <dc:creator>AK89</dc:creator>
      <dc:date>2022-06-13T20:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: stats values and data not aligning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-stats-values-and-data-not-aligning/m-p/601570#M209364</link>
      <description>&lt;P&gt;values() shows the unique values sorted in lexicographical order - if you want to maintain a one-to-one correspondence use list() instead of values() however this does not dedup the values so you may end up with duplicates.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 14:21:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-stats-values-and-data-not-aligning/m-p/601570#M209364</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-13T14:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: stats values and data not aligning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-stats-values-and-data-not-aligning/m-p/601579#M209366</link>
      <description>&lt;P&gt;Appreciate the quick response! This works. As for dupes, my data is pulled in on a scheduled basis, so I can use the time range to handle dupes. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 14:44:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-stats-values-and-data-not-aligning/m-p/601579#M209366</guid>
      <dc:creator>AK89</dc:creator>
      <dc:date>2022-06-13T14:44:21Z</dc:date>
    </item>
  </channel>
</rss>

