<?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 Find All fieldnames for fields which contain a specified value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Find-All-fieldnames-for-fields-which-contain-a-specified-value/m-p/160812#M45481</link>
    <description>&lt;P&gt;Hello, &lt;/P&gt;

&lt;P&gt;My question is whether or not I can, via sp, return a list of all fieldnames which contain a specified value.&lt;/P&gt;

&lt;P&gt;For instance, if I was looking for "superstar", can I construct a search which will return all fields which contain "superstar" as a value?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 12 May 2014 19:06:43 GMT</pubDate>
    <dc:creator>essklau</dc:creator>
    <dc:date>2014-05-12T19:06:43Z</dc:date>
    <item>
      <title>Find All fieldnames for fields which contain a specified value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-All-fieldnames-for-fields-which-contain-a-specified-value/m-p/160812#M45481</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;

&lt;P&gt;My question is whether or not I can, via sp, return a list of all fieldnames which contain a specified value.&lt;/P&gt;

&lt;P&gt;For instance, if I was looking for "superstar", can I construct a search which will return all fields which contain "superstar" as a value?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 19:06:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-All-fieldnames-for-fields-which-contain-a-specified-value/m-p/160812#M45481</guid>
      <dc:creator>essklau</dc:creator>
      <dc:date>2014-05-12T19:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Find All fieldnames for fields which contain a specified value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-All-fieldnames-for-fields-which-contain-a-specified-value/m-p/160813#M45482</link>
      <description>&lt;P&gt;Sure. With splunkd being our superstar, you can do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | fields - tag::*
| foreach * [eval fieldnames = if(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=="splunkd", mvappend(fieldnames, "&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;"), fieldnames)]
| stats values(fieldnames)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For me that yields &lt;CODE&gt;series&lt;/CODE&gt; (from metrics logs) and &lt;CODE&gt;sourcetype&lt;/CODE&gt; (obvious).&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 21:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-All-fieldnames-for-fields-which-contain-a-specified-value/m-p/160813#M45482</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-12T21:06:35Z</dc:date>
    </item>
  </channel>
</rss>

