title: Get distinct results (filtered results) of Splunk Query based on a results field/string value
body: <p>I have a splunk query something like</p>
  <pre><code>index=myIndex* source=&quot;source/path/of/logs/*.log&quot; &quot;Elephant&quot;
  </code></pre>
  <p>Thus, this brings up about 2,000 results which are JSON responses from one of my APIs that include the world <code>&quot;Elephant&quot;</code>. This is kind of what I want - <em><strong>However</strong></em>, some of these results have duplicate <code>carId</code> fields, and I only want Splunk to show me the unique search results</p>
  <p>The Results of Splunk looks something like this:</p>
  <pre><code>MyApiRequests {&quot;carId&quot;:3454353435,&quot;make&quot;:&quot;toyota&quot;,&quot;year&quot;:&quot;2015&quot;,&quot;model&quot;:&quot;camry&quot;,&quot;value&quot;:25000.00}
  </code></pre>
  <p><em><strong>NOW</strong></em>, I just want to filter on the <code>carId</code>'s that are unique. I don't want duplicates. Thus, I would expect the original value of 2,000 results to decrease quite a bit.</p>
  <p>Can anyone help me formulate my Splunk Query to achieve this?</p>