<?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 query for specific string literal field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-for-specific-string-literal-field/m-p/153824#M185642</link>
    <description>&lt;P&gt;I have a filed in my logs "labeDatal" and I also have another field that I trace out called "labelDataSpec"&lt;/P&gt;

&lt;P&gt;i.e. log =&amp;gt;  ".....labelData="whatever1" labelDataSpec="whatever1.1"&lt;/P&gt;

&lt;P&gt;How can I run a query that just brings back data for labelData and not labelDataSpec?  The following query is bringing back data for labelDataSpec as well (I only want labelData):&lt;/P&gt;

&lt;P&gt;source=...labelData| chart count by labelData | sort count | reverse&lt;/P&gt;

&lt;P&gt;output example:&lt;/P&gt;

&lt;P&gt;labelData          count&lt;BR /&gt;
1  whatever1    15&lt;BR /&gt;
2 whatever2      100&lt;BR /&gt;
&lt;HOWEVER&gt;&lt;/HOWEVER&gt;&lt;/P&gt;

&lt;P&gt;etc,...&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2014 22:34:24 GMT</pubDate>
    <dc:creator>jaj</dc:creator>
    <dc:date>2014-02-17T22:34:24Z</dc:date>
    <item>
      <title>How to query for specific string literal field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-for-specific-string-literal-field/m-p/153824#M185642</link>
      <description>&lt;P&gt;I have a filed in my logs "labeDatal" and I also have another field that I trace out called "labelDataSpec"&lt;/P&gt;

&lt;P&gt;i.e. log =&amp;gt;  ".....labelData="whatever1" labelDataSpec="whatever1.1"&lt;/P&gt;

&lt;P&gt;How can I run a query that just brings back data for labelData and not labelDataSpec?  The following query is bringing back data for labelDataSpec as well (I only want labelData):&lt;/P&gt;

&lt;P&gt;source=...labelData| chart count by labelData | sort count | reverse&lt;/P&gt;

&lt;P&gt;output example:&lt;/P&gt;

&lt;P&gt;labelData          count&lt;BR /&gt;
1  whatever1    15&lt;BR /&gt;
2 whatever2      100&lt;BR /&gt;
&lt;HOWEVER&gt;&lt;/HOWEVER&gt;&lt;/P&gt;

&lt;P&gt;etc,...&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2014 22:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-for-specific-string-literal-field/m-p/153824#M185642</guid>
      <dc:creator>jaj</dc:creator>
      <dc:date>2014-02-17T22:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to query for specific string literal field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-for-specific-string-literal-field/m-p/153825#M185643</link>
      <description>&lt;P&gt;Your stats should work like it is - have you verified your data? Anyway, you can remove the field before the stats/chart/timechart/whatever, just to be sure ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | fields - labelDataSpec | chart count by labelData | sort - count 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 00:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-for-specific-string-literal-field/m-p/153825#M185643</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-02-18T00:20:48Z</dc:date>
    </item>
  </channel>
</rss>

