<?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: Retrieving all fields that have a certain value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121544#M32698</link>
    <description>&lt;P&gt;Try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... your search
| fieldsummary
| search values=*failed*
| table field
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could actually use &lt;CODE&gt;eval&lt;/CODE&gt; and the &lt;CODE&gt;mvsplit&lt;/CODE&gt; on the values field too but it'd be a bit more work to clean it up.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2015 19:50:49 GMT</pubDate>
    <dc:creator>aljohnson_splun</dc:creator>
    <dc:date>2015-04-06T19:50:49Z</dc:date>
    <item>
      <title>Retrieving all fields that have a certain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121541#M32695</link>
      <description>&lt;P&gt;My events have a few fields that are of the type:&lt;BR /&gt;
 field_Name=failed&lt;BR /&gt;
What query should I write to get all that fields names? something that would mean any_field="failed" and retrieve me the name of that field.&lt;BR /&gt;
I have just started writting queries in Splunk and any help would be much appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:23:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121541#M32695</guid>
      <dc:creator>andra_pietraru</dc:creator>
      <dc:date>2020-09-28T19:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all fields that have a certain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121542#M32696</link>
      <description>&lt;P&gt;If you search for "failed" - how many fields do you get ? Can you just inspect the fields sidebar for potential matches?&lt;/P&gt;

&lt;P&gt;Ultimately, it sounds like the key-value pairings are reversed - using values to search for keys ? &lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2015 16:03:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121542#M32696</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-04-02T16:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all fields that have a certain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121543#M32697</link>
      <description>&lt;P&gt;I have about 15 different fields that may have "failed" as a value (not all in the same event). Inspecting the fields sidebar doesn't help very much since I would like to have an overview of all that fields , not just one.&lt;BR /&gt;
You're right, I'm trying to use the value "failed" to retrieve all fields that have it.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2015 06:18:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121543#M32697</guid>
      <dc:creator>andra_pietraru</dc:creator>
      <dc:date>2015-04-03T06:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all fields that have a certain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121544#M32698</link>
      <description>&lt;P&gt;Try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... your search
| fieldsummary
| search values=*failed*
| table field
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could actually use &lt;CODE&gt;eval&lt;/CODE&gt; and the &lt;CODE&gt;mvsplit&lt;/CODE&gt; on the values field too but it'd be a bit more work to clean it up.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2015 19:50:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121544#M32698</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-04-06T19:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all fields that have a certain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121545#M32699</link>
      <description>&lt;P&gt;I submitted an answer. Good luck ! &lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2015 19:51:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121545#M32699</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-04-06T19:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all fields that have a certain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121546#M32700</link>
      <description>&lt;P&gt;Hello every body!. here is my solution using regular expressions, although i don't know how is your events but if I had a sample of your data, I would have given you the exact search . I suppose that &lt;STRONG&gt;field_Name=failed&lt;/STRONG&gt; figure in your events (raw data)&lt;/P&gt;

&lt;P&gt;Try this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;................|rex "(?i)^[^\?]*\?(?P&amp;lt;field_Name&amp;gt;[^=]+)=failed"|where field_Name!=""|table field_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is an example with the &lt;STRONG&gt;_internal&lt;/STRONG&gt; index, that you can test.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal|rex "(?i)^[^\?]*\?(?P&amp;lt;field_Name&amp;gt;[^=]+)=json"|where field_Name!=""|table field_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you still have problems, let's get a sample of your events.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2015 23:11:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121546#M32700</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-04-06T23:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all fields that have a certain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121547#M32701</link>
      <description>&lt;P&gt;It did exactly what I wanted to: list all fields with "failed" as value. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2015 08:07:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121547#M32701</guid>
      <dc:creator>andra_pietraru</dc:creator>
      <dc:date>2015-04-07T08:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all fields that have a certain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121548#M32702</link>
      <description>&lt;P&gt;Another good solution to this would be to &lt;CODE&gt;| transpose&lt;/CODE&gt;  the fields. This will turn your column names into rows with a new header. This will then give you the ability to do &lt;CODE&gt;| search field=value&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 14:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/121548#M32702</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-11-17T14:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving all fields that have a certain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/698189#M237119</link>
      <description>&lt;LI-CODE lang="markup"&gt;| fieldsummary
| search values=*\"value\":\"&amp;lt;what value you exactly want to check&amp;gt;\"*
| table field&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Sep 2024 14:03:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-all-fields-that-have-a-certain-value/m-p/698189#M237119</guid>
      <dc:creator>jokertothequinn</dc:creator>
      <dc:date>2024-09-04T14:03:38Z</dc:date>
    </item>
  </channel>
</rss>

