<?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 How to get unique data? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643558#M16351</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keerthi_0-1684304562915.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25407i4833076D702BE6BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keerthi_0-1684304562915.png" alt="Keerthi_0-1684304562915.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have a query and the results shows as above. The column function as only single value. I need to get only one value instead of two as the_time also remains same. Can anyone help me to get single value instead of the value repeating twice.&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 11:31:09 GMT</pubDate>
    <dc:creator>Keerthi</dc:creator>
    <dc:date>2023-05-17T11:31:09Z</dc:date>
    <item>
      <title>How to get unique data?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643558#M16351</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keerthi_0-1684304562915.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25407i4833076D702BE6BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keerthi_0-1684304562915.png" alt="Keerthi_0-1684304562915.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have a query and the results shows as above. The column function as only single value. I need to get only one value instead of two as the_time also remains same. Can anyone help me to get single value instead of the value repeating twice.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 11:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643558#M16351</guid>
      <dc:creator>Keerthi</dc:creator>
      <dc:date>2023-05-17T11:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get unique data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643562#M16352</link>
      <description>&lt;P&gt;Your SPL is correct for what you are trying to achieve - what may not be "correct" is your data. Does the function have trailing white spaces for example, which makes them look the same but in fact they are different?&lt;/P&gt;&lt;P&gt;You could try trimming the field before the dedup&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| savedsearch blah
| fields function
| eval function=trim(function)
| dedup function
| sort function&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 May 2023 06:36:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643562#M16352</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-17T06:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get unique data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643579#M16353</link>
      <description>&lt;P&gt;Hi Sir,&lt;BR /&gt;&lt;BR /&gt;I tried but still am getting two values.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keerthi_0-1684310460325.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25411iD72587A064740772/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keerthi_0-1684310460325.png" alt="Keerthi_0-1684310460325.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 08:01:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643579#M16353</guid>
      <dc:creator>Keerthi</dc:creator>
      <dc:date>2023-05-17T08:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get unique data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643582#M16354</link>
      <description>&lt;P&gt;Field names are case-sensitive - try using Function instead of function.&lt;/P&gt;&lt;P&gt;(My excuse is that I was unable to accurately copy your image into a text box - in future, it is usually best to use the code block &amp;lt;/&amp;gt; option to include SPL or event text so that formatting and typos are reduced.)&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 08:21:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643582#M16354</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-17T08:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get unique data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643759#M16366</link>
      <description>&lt;P&gt;I tried keeping the case sensitive topic in my mind but it still fetches 2 rows.&lt;BR /&gt;i tried using:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;|stats first(Function) command to get the first row. But the query when applied to filter does not produce the result.&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keerthi_0-1684407658208.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25425i4791DEAD18A63560/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keerthi_0-1684407658208.png" alt="Keerthi_0-1684407658208.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keerthi_1-1684407692688.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25426i4676B4180282F94C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keerthi_1-1684407692688.png" alt="Keerthi_1-1684407692688.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keerthi_2-1684407710288.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25427iFAE54AC1FEC7C448/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keerthi_2-1684407710288.png" alt="Keerthi_2-1684407710288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;any help here pls&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 11:02:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643759#M16366</guid>
      <dc:creator>Keerthi</dc:creator>
      <dc:date>2023-05-18T11:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get unique data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643762#M16367</link>
      <description>&lt;P&gt;If you just want the first event, use this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| head 1&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 May 2023 11:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643762#M16367</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-18T11:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get unique data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643766#M16368</link>
      <description>&lt;P&gt;Thnaks that worked, but i lately realised one thing that the names ( i mean the spelling) is wrong. is there nay chance to hardcode the value manually in splunk.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Keerthi_0-1684411246989.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25428i2524A90575347046/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Keerthi_0-1684411246989.png" alt="Keerthi_0-1684411246989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;HELP PLS!!&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 12:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643766#M16368</guid>
      <dc:creator>Keerthi</dc:creator>
      <dc:date>2023-05-18T12:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get unique data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643768#M16369</link>
      <description>&lt;P&gt;You could hardcode replacements of incorrect spellings with correct spellings&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/TextFunctions#replace.28.26lt.3Bstr.26gt.3B.2C.26lt.3Bregex.26gt.3B.2C.26lt.3Breplacement.26gt.3B.29" target="_blank" rel="noopener"&gt;replace function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 12:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-get-unique-data/m-p/643768#M16369</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-18T12:21:41Z</dc:date>
    </item>
  </channel>
</rss>

