<?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: Cannot search for field but field is shown in field list in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426631#M122229</link>
    <description>&lt;P&gt;I did and it makes no change at all.&lt;BR /&gt;
See last answer post, looks like I have a solution now. &lt;BR /&gt;
Will post once testing is finished and the thing is a bit more polished.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2019 07:05:05 GMT</pubDate>
    <dc:creator>afx</dc:creator>
    <dc:date>2019-06-18T07:05:05Z</dc:date>
    <item>
      <title>Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426590#M122188</link>
      <description>&lt;P&gt;I have a totally weird case...&lt;BR /&gt;
I have field extractions defined in props.conf either individually or all in one extraction, no difference.&lt;BR /&gt;
The fields show up in the "Interesting Fields" list.&lt;/P&gt;

&lt;P&gt;When I then select a field and pick a value, the result is empty. &lt;BR /&gt;
For example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex sourcetype=mysrc myfield=A
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Shows nothing even though the popup told me there are 100 entries of myfield  with contents A.&lt;BR /&gt;
But if I then flip the search to exclude A I get results...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex sourcetype=mysrc myfield!=A
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This happens for several fields defined for that index/source type but not all and I see no pattern why some work and some do not (position seems irrelvant).&lt;BR /&gt;
If I use the fieldsummary filter, I find things just fine.&lt;BR /&gt;
Splunk 7.4.2, 2 indexers, one SH &lt;/P&gt;

&lt;P&gt;So why can't I select field contents that Splunk clearly knows about?&lt;/P&gt;

&lt;P&gt;I am totally lost.&lt;/P&gt;

&lt;P&gt;thx&lt;BR /&gt;
afx&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 12:53:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426590#M122188</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2019-06-14T12:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426591#M122189</link>
      <description>&lt;P&gt;What results do you see when you table the events:&lt;BR /&gt;
&lt;PRE&gt;index=myindex sourcetype=mysrc &lt;BR /&gt;
| table index sourcetype myfield&lt;BR /&gt;
| sort myfield&lt;/PRE&gt;&lt;BR /&gt;
Do you see values in myfield?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 12:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426591#M122189</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2019-06-14T12:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426592#M122190</link>
      <description>&lt;P&gt;Yes, they show up there.&lt;BR /&gt;
I also did this:   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=myindex sourcetype=mysource 
    | fieldsummary 
    | search field="myfield" 
    | table field count distinct_count values
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the result is just perfectly fine.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:14:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426592#M122190</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2019-06-14T13:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426593#M122191</link>
      <description>&lt;P&gt;And if you do:&lt;BR /&gt;
&lt;PRE&gt;index=myindex sourcetype=mysrc &lt;BR /&gt;
| table index sourcetype myfield&lt;BR /&gt;
| search myfield="A"&lt;/PRE&gt;&lt;BR /&gt;
What do you see?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:20:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426593#M122191</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2019-06-14T13:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426594#M122192</link>
      <description>&lt;P&gt;Can you share the props/transforms for how that specific field is being extracted?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:24:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426594#M122192</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-06-14T13:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426595#M122193</link>
      <description>&lt;P&gt;"No results found"&lt;BR /&gt;
is all I get.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426595#M122193</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2019-06-14T13:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426596#M122194</link>
      <description>&lt;P&gt;This is the props.conf file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sap:sal]
EXTRACT-sal = ^(?&amp;lt;message_id&amp;gt;.{3})(?&amp;lt;date&amp;gt;.{8})(?&amp;lt;time&amp;gt;.{6})(\w\w)(?&amp;lt;process_id&amp;gt;.{5})(?&amp;lt;task&amp;gt;.{5})(?&amp;lt;proctype&amp;gt;.{2})(?&amp;lt;term&amp;gt;.{8})(?&amp;lt;user&amp;gt;.{12})(?&amp;lt;transaction&amp;gt;.{20})(?&amp;lt;app&amp;gt;.{40})(?&amp;lt;client&amp;gt;.{3})(?&amp;lt;message&amp;gt;.{64})(?&amp;lt;src&amp;gt;.{20})

LOOKUP-auto_sap_sm20 = sap_sm20 message_id AS message_id OUTPUTNEW audit_class AS sap_audit_class event_class AS sap_event_class message AS sap_message new_in_release AS sap_new_in_release
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sap_sm20]
batch_index_query = 0
case_sensitive_match = 1
filename = SAP_SM20.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:33:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426596#M122194</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2019-06-14T13:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426597#M122195</link>
      <description>&lt;P&gt;And what field(s) do you have issues with? The ones from the lookup perhaps?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:41:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426597#M122195</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-06-14T13:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426598#M122196</link>
      <description>&lt;P&gt;That would be easy &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
The ones that work are user, app,src, sap_audit_class.&lt;BR /&gt;
They don't seem to follow a pattern.&lt;BR /&gt;
Even weirder, sap_audit_class is based on message_id and works, but message_id itself does not...&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:56:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426598#M122196</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2020-09-30T00:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426599#M122197</link>
      <description>&lt;P&gt;And you're not overlooking whitespace in the field values or so?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:52:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426599#M122197</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-06-14T13:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426600#M122198</link>
      <description>&lt;P&gt;Then everything is working fine, and you're not searching for the right value.&lt;/P&gt;

&lt;P&gt;Can you provide a sample event where it contains the value you're looking for?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:55:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426600#M122198</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2019-06-14T13:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426601#M122199</link>
      <description>&lt;P&gt;Hi @afx ,&lt;BR /&gt;
Based upon your answers in the comments, you are probably not using the right search term(s).  Can you provide a sample of what an event looks like that contains the data you're looking for?  Highlight the value that is supposed to be the myfield value you're looking for.&lt;/P&gt;

&lt;P&gt;Here's another thing you might try (seems to match your case):&lt;BR /&gt;
&lt;A href="https://www.splunk.com/blog/2011/10/07/cannot-search-based-on-an-extracted-field.html"&gt;https://www.splunk.com/blog/2011/10/07/cannot-search-based-on-an-extracted-field.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426601#M122199</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2019-06-14T13:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426602#M122200</link>
      <description>&lt;P&gt;Nope. &lt;BR /&gt;
I select values from the dropdown menus that splunk offers me for the fields.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:01:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426602#M122200</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2019-06-14T14:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426603#M122201</link>
      <description>&lt;P&gt;Yeah, I thought that's what you meant with how you described your testing in the question post, just wanted to double check.&lt;/P&gt;

&lt;P&gt;Well then I'm running out of ideas...&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:06:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426603#M122201</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-06-14T14:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426604#M122202</link>
      <description>&lt;P&gt;Why would I not use the right search terms? &lt;BR /&gt;
Splunk is offering me the terms in the popup menus for the fields.&lt;BR /&gt;
For example &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;AUK20190614155300000387400019D110.42.24S_ESA_ANG SAPMSSY1 1001ARFC&amp;amp;&amp;amp;ARFC_DEST_CONFIRM 10.42.242.200
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Should be found when I select message_id=AUK from the interesting fields sidebar.&lt;BR /&gt;
But I get no results&lt;BR /&gt;
(The copy and paste did collapse spaces in this record.  The extract definition above shows where things are. Just Imagine plenty of spaces to fill the fixed size records where you see a single space, this line is always exactly 200 characters wide).&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:09:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426604#M122202</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2019-06-14T14:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426605#M122203</link>
      <description>&lt;P&gt;What happens when you try &lt;CODE&gt;message_id="*AUK*"&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:13:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426605#M122203</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2019-06-14T14:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426606#M122204</link>
      <description>&lt;P&gt;No results found ;-(&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:16:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426606#M122204</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2019-06-14T14:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426607#M122205</link>
      <description>&lt;P&gt;And when you search for "AUK" or "AUK*" (so without the field name). And if you get results, what part of the event is getting highlighted?&lt;/P&gt;

&lt;P&gt;I'm guessing this has something to do with bloom filters failing due to your event being one long string.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:24:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426607#M122205</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-06-14T14:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426608#M122206</link>
      <description>&lt;P&gt;What do you get when you try:&lt;BR /&gt;
&lt;PRE&gt;| ... [ your search without message_id= ] ...&lt;BR /&gt;
| stats dc(message_id) as message_id_count values(message_id) as message_id_values&lt;/PRE&gt;&lt;BR /&gt;
Do you get a numeric value for the count and a list of message_id values?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:56:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426608#M122206</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2020-09-30T00:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot search for field but field is shown in field list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426609#M122207</link>
      <description>&lt;P&gt;It is not the one long string, as I wrote in the first post, this also happens with individual definitions.&lt;/P&gt;

&lt;P&gt;Ok, tried just the string and I do not get any results...&lt;BR /&gt;
Which is weird. &lt;/P&gt;

&lt;P&gt;I do get results for AUK* or "AUK*" which then highlights everything until the first space. &lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:30:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cannot-search-for-field-but-field-is-shown-in-field-list/m-p/426609#M122207</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2019-06-14T14:30:34Z</dc:date>
    </item>
  </channel>
</rss>

