<?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: How can I search for all fields that have a certain string? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379861#M166696</link>
    <description>&lt;P&gt;Searching with &lt;CODE&gt;*string*&lt;/CODE&gt; will search for all the raw events containing &lt;CODE&gt;string&lt;/CODE&gt;. For example if searched for &lt;CODE&gt;*status*&lt;/CODE&gt;, splunk will output all the events which contains &lt;CODE&gt;failed_status, success_status, status, status_failed, status_success&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If you say &lt;CODE&gt;status=fail*&lt;/CODE&gt; then splunk will look only in value of the field called &lt;CODE&gt;status&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;What do you mean by extracted for field?&lt;BR /&gt;
Do you mean that extracted =&amp;gt; the field will be lying in left under fields ..?&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Yes. Under "INTERESTING FIELDS" column. After figuring out the name you want to use for &lt;CODE&gt;status&lt;/CODE&gt;, you can extract a field with that name and use it for future searches. &lt;/P&gt;</description>
    <pubDate>Thu, 08 Nov 2018 14:45:13 GMT</pubDate>
    <dc:creator>sudosplunk</dc:creator>
    <dc:date>2018-11-08T14:45:13Z</dc:date>
    <item>
      <title>How can I search for all fields that have a certain string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379856#M166691</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;How can I get only results for specific fields where field name is like something ? &lt;/P&gt;

&lt;P&gt;fx.&lt;BR /&gt;
get all fields which have "status" in their field name.&lt;/P&gt;

&lt;P&gt;I tried this but It doesnt work:&lt;BR /&gt;
sta*&lt;BR /&gt;
I want also to do later this: &lt;/P&gt;

&lt;P&gt;sta* OR STA* OR Sta*&lt;/P&gt;

&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 08:14:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379856#M166691</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2018-11-08T08:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for all fields that have a certain string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379857#M166692</link>
      <description>&lt;P&gt;If "status" field is extracted, then you can run &lt;CODE&gt;index=idx sourcetype=st status=*&lt;/CODE&gt;. This will give all events which have &lt;CODE&gt;status&lt;/CODE&gt; field.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:11:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379857#M166692</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-11-08T14:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for all fields that have a certain string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379858#M166693</link>
      <description>&lt;P&gt;I think the questioned is not understood.&lt;/P&gt;

&lt;P&gt;My problem is that I dont know that status is called status. &lt;BR /&gt;
It might be status_20 or status_Main&lt;BR /&gt;
so what I want to find is all fields which starts with st*&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379858#M166693</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2020-09-29T21:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for all fields that have a certain string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379859#M166694</link>
      <description>&lt;P&gt;So the field is not extracted. Try running &lt;CODE&gt;*status*&lt;/CODE&gt; or &lt;CODE&gt;*sta*&lt;/CODE&gt; to see exact name and then extract the field. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379859#M166694</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-11-08T14:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for all fields that have a certain string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379860#M166695</link>
      <description>&lt;P&gt;but from what I understood by other post, such a searching will look only in value but not in field name. Isn't that correct?&lt;/P&gt;

&lt;P&gt;What do you mean by extracted for field?&lt;BR /&gt;
Do you mean  that extracted =&amp;gt; the field will be lying in left under fields ..?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:34:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379860#M166695</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2018-11-08T14:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for all fields that have a certain string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379861#M166696</link>
      <description>&lt;P&gt;Searching with &lt;CODE&gt;*string*&lt;/CODE&gt; will search for all the raw events containing &lt;CODE&gt;string&lt;/CODE&gt;. For example if searched for &lt;CODE&gt;*status*&lt;/CODE&gt;, splunk will output all the events which contains &lt;CODE&gt;failed_status, success_status, status, status_failed, status_success&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If you say &lt;CODE&gt;status=fail*&lt;/CODE&gt; then splunk will look only in value of the field called &lt;CODE&gt;status&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;What do you mean by extracted for field?&lt;BR /&gt;
Do you mean that extracted =&amp;gt; the field will be lying in left under fields ..?&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Yes. Under "INTERESTING FIELDS" column. After figuring out the name you want to use for &lt;CODE&gt;status&lt;/CODE&gt;, you can extract a field with that name and use it for future searches. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379861#M166696</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-11-08T14:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for all fields that have a certain string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379862#M166697</link>
      <description>&lt;P&gt;ok so can tell that the field is already extracted. What my primary goal is that I dont want to screen all available column in left.&lt;BR /&gt;
I am lazy &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; so I want to display in front of my eyes in search all field (extracted)  which start with "st"&lt;/P&gt;

&lt;P&gt;and I guess that status by itself is not in raw data but a metadata.?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:50:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379862#M166697</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2018-11-08T14:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for all fields that have a certain string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379863#M166698</link>
      <description>&lt;P&gt;You want to see fieldnames that have status in them and not the field values that have status in them if I understood correctly? If that is the case you can do- | table &lt;EM&gt;status&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:33:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379863#M166698</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-11-08T15:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for all fields that have a certain string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379864#M166699</link>
      <description>&lt;P&gt;Alright, first step is to search for all raw events which have "status" string by using &lt;CODE&gt;*status*&lt;/CODE&gt; or &lt;CODE&gt;*stat*&lt;/CODE&gt;. - This will give you an idea about how "status" is represented. &lt;/P&gt;

&lt;P&gt;Next step is to extract "status" field so that it will show up in the left column under "Interested fields". - For this provide redacted events from the above output results which shows all possible values for "status" and I can help you build a regex for field extraction.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:42:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379864#M166699</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-11-08T15:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for all fields that have a certain string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379865#M166700</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| fieldsummary  sta* STA* Sta*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Nov 2018 20:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379865#M166700</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2018-11-08T20:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for all fields that have a certain string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379866#M166701</link>
      <description>&lt;P&gt;ok I try that and give feedback&lt;BR /&gt;
Thank you @sudosplunk &lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 07:09:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379866#M166701</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2018-11-09T07:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for all fields that have a certain string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379867#M166702</link>
      <description>&lt;P&gt;yes but not sure if we talk for same.&lt;BR /&gt;
please refer to @kmaron response as it is exactly what I was looking for&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 11:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379867#M166702</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2018-11-09T11:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for all fields that have a certain string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379868#M166703</link>
      <description>&lt;P&gt;Exactly this.  Thanks !&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 11:24:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-all-fields-that-have-a-certain-string/m-p/379868#M166703</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2018-11-09T11:24:15Z</dc:date>
    </item>
  </channel>
</rss>

