<?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: Search in fast vs smart modes does not return same number of events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501686#M195133</link>
    <description>&lt;P&gt;We found a problem but we do not understand why it's happening.&lt;/P&gt;

&lt;P&gt;There were some fields defined via EXTRACT- stanza and some fields defined via REPORT- stanza using transforms.conf. In FAST mode only fields using EXTRACT were really extracted when we enforced extraction in SPL using field=&lt;EM&gt;. So far so good. However, those fields defined via REPORT- stanza were not extracted when enforced with field=&lt;/EM&gt; in SPL. &lt;/P&gt;

&lt;P&gt;When we switched from REPORT- EXTRACT- it started working as expected.&lt;/P&gt;

&lt;P&gt;This does not make sense! What should we do if we wanted some more complex transformations via REPORT in FAST mode as this one is defualt for all dashboards ???&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2019 14:49:20 GMT</pubDate>
    <dc:creator>tomasmoser</dc:creator>
    <dc:date>2019-12-05T14:49:20Z</dc:date>
    <item>
      <title>Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501677#M195124</link>
      <description>&lt;P&gt;We ran into a problem where a &lt;STRONG&gt;search in smart mode returns 6&lt;/STRONG&gt; events, while the same &lt;STRONG&gt;search in fast mode returns 2&lt;/STRONG&gt; events even if we enrich search in fast mode with some more fields we want to extract on top fields extracted by default. No effect. Searches are very simple – no transforming commands at the end.&lt;/P&gt;

&lt;P&gt;We found out that in fast mode &lt;STRONG&gt;if we add&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;“| fields *”
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;it automagically returns all 6 events we expected&lt;/STRONG&gt;. These searches run in dashboards/reports – so by default in FAST. What does adding &lt;CODE&gt;|fields *&lt;/CODE&gt; have to do with the search? Isn’t it the same as Smart/Verbose after that? Does not make sense to me.  &lt;/P&gt;

&lt;P&gt;I read the docs detailing difference between fast vs. smart.&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Search/Changethesearchmode"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Search/Changethesearchmode&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Still I do not get it. &lt;/P&gt;

&lt;P&gt;BTW: The additional fields in events we want to see in FAST are extracted using EXTACT and REPORT sin props.conf + corresponding stanzas in transforms.conf.&lt;/P&gt;

&lt;P&gt;Why is this happening?&lt;/P&gt;

&lt;P&gt;Tomas&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 09:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501677#M195124</guid>
      <dc:creator>tomasmoser</dc:creator>
      <dc:date>2019-12-05T09:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501678#M195125</link>
      <description>&lt;P&gt;@tomasmoser &lt;/P&gt;

&lt;P&gt;I will not suggest &lt;CODE&gt;| fields *&lt;/CODE&gt; but you can use &lt;CODE&gt;| fields&lt;/CODE&gt; by mentioning required fields. &lt;BR /&gt;
Like, &lt;CODE&gt;YOUR_SEARCH | fields F1 F2 F3 etc&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 09:51:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501678#M195125</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-12-05T09:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501679#M195126</link>
      <description>&lt;P&gt;Hi @tomasmoser,&lt;BR /&gt;
this was a bug in version 6.2, that was solved in the following releases!&lt;/P&gt;

&lt;P&gt;Only one question: what's the time period of your search?&lt;BR /&gt;
Please try non using earlies=now, in other words: use an old time period as yesterday or last hour and check if you have the same error.&lt;BR /&gt;
At the same time the hint of @kamlesh_vaghela ·is fully correct: use only the fields you need!&lt;/P&gt;

&lt;P&gt;If you continue to have the problem, open a ticket to Splunk Support: This helps all the Splunk users!&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 10:00:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501679#M195126</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-12-05T10:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501680#M195127</link>
      <description>&lt;P&gt;adding to what @gcusello says, I can confirm that he is correct. I am using the same code in 7.x vs 6.x.&lt;BR /&gt;
I started to notice that if i ran the search in verbose mode (6.x) it was returning 1-2 events more thatn my dashboard results, now when i go to 7.x(at least for this particular instance) there is no difference.&lt;BR /&gt;
This was a big bug in my opinion, since users would not even know that they are missing events in a dashboard but looks to have been fixed now&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 10:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501680#M195127</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-12-05T10:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501681#M195128</link>
      <description>&lt;P&gt;One important fact. We are extracting fields using following "special" hack&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[(?::){0}k8s*]
EXTRACT-uno_fields = ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z\s+(?P&amp;lt;severity&amp;gt;\w+)\s+(?P&amp;lt;logger&amp;gt;[^\s]+)\s+(?:(?P&amp;lt;th
readId&amp;gt;[^\s]+)?\s+)?\[(?P&amp;lt;thread&amp;gt;[^\]]+)\]\s+-\s+(?P&amp;lt;message&amp;gt;.*)
REPORT-uno_thread_fields = uno_thread_fields

EVAL-severity = if(isnotnull(severity), severity, "n/a")
EVAL-traceId = if(isnotnull(traceId), traceId, "n/a")
EVAL-parentId = if(isnotnull(parentId), parentId, "n/a")
EVAL-spanId = if(isnotnull(spanId), spanId, "n/a")
EVAL-logger = if(isnotnull(logger), logger, "n/a")

# temporarily for backward compatibility
FIELDALIAS-uno_logLevel = severity as uno_logLevel
FIELDALIAS-uno_logger = logger as uno_logger
FIELDALIAS-uno_thread = thread as uno_thread
FIELDALIAS-uno_message = message as uno_message
FIELDALIAS-uno_time = _time as uno_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Dec 2019 11:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501681#M195128</guid>
      <dc:creator>tomasmoser</dc:creator>
      <dc:date>2019-12-05T11:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501682#M195129</link>
      <description>&lt;P&gt;do you use one of these fields as a filter in your search?&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 11:52:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501682#M195129</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-12-05T11:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501683#M195130</link>
      <description>&lt;P&gt;Yes, we use simple searches like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`index=blabla sourcetype=blabla`. 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This does not work. &lt;/P&gt;

&lt;P&gt;But if I explicitely add a filter with another field to be extracted it DOES NOT work too. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=blabla sourcetype=blabla spanId=* 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then if I add | fields * it immediately starts working.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=blabla sourcetype=blabla spanId=*
| fields * 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Dec 2019 13:26:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501683#M195130</guid>
      <dc:creator>tomasmoser</dc:creator>
      <dc:date>2019-12-05T13:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501684#M195131</link>
      <description>&lt;P&gt;We tried that. Does not work. Only "|fields *" works.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 13:27:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501684#M195131</guid>
      <dc:creator>tomasmoser</dc:creator>
      <dc:date>2019-12-05T13:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501685#M195132</link>
      <description>&lt;P&gt;Hi @tomasmoser,&lt;BR /&gt;
the problem is that in Fast Mode you can use only the basic fields (index, sourcetype, source, host), you cannot use other fields.&lt;BR /&gt;
For more details see at &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Search/Changethesearchmode"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Search/Changethesearchmode&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 14:01:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501685#M195132</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-12-05T14:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501686#M195133</link>
      <description>&lt;P&gt;We found a problem but we do not understand why it's happening.&lt;/P&gt;

&lt;P&gt;There were some fields defined via EXTRACT- stanza and some fields defined via REPORT- stanza using transforms.conf. In FAST mode only fields using EXTRACT were really extracted when we enforced extraction in SPL using field=&lt;EM&gt;. So far so good. However, those fields defined via REPORT- stanza were not extracted when enforced with field=&lt;/EM&gt; in SPL. &lt;/P&gt;

&lt;P&gt;When we switched from REPORT- EXTRACT- it started working as expected.&lt;/P&gt;

&lt;P&gt;This does not make sense! What should we do if we wanted some more complex transformations via REPORT in FAST mode as this one is defualt for all dashboards ???&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 14:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501686#M195133</guid>
      <dc:creator>tomasmoser</dc:creator>
      <dc:date>2019-12-05T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501687#M195134</link>
      <description>&lt;P&gt;That is not true. See my answer above. &lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 14:50:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501687#M195134</guid>
      <dc:creator>tomasmoser</dc:creator>
      <dc:date>2019-12-05T14:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501688#M195135</link>
      <description>&lt;P&gt;Adding &lt;CODE&gt;fields *&lt;/CODE&gt; is a clever way to FORCE splunk to run in &lt;CODE&gt;Smart Mode&lt;/CODE&gt; even when &lt;CODE&gt;Fast Mode&lt;/CODE&gt; is selected.  It should be that both &lt;CODE&gt;Dashbaords&lt;/CODE&gt; and &lt;CODE&gt;Scheduled Searches&lt;/CODE&gt; run in &lt;CODE&gt;Smart Mode&lt;/CODE&gt;.  If you are sure that this is not the case for you, then DEFINITELY open a support case.  You need to tell Splunk more about the fields that are creating/referencing by adding &lt;CODE&gt;INDEXED&lt;/CODE&gt; and or &lt;CODE&gt;INDEXED_VALUE&lt;/CODE&gt; settings in fields.conf (it is a tricky thing):&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Fieldsconf"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Fieldsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501688#M195135</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-05T15:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501689#M195136</link>
      <description>&lt;P&gt;It looks that default search mode for Splunk dashboards is FAST. I am finding contradictory answers to this question - some says FAST some says SMART. We seem to be running in FAST mode in dashboards and then do not get any results. In SMART wet get all events. &lt;/P&gt;

&lt;P&gt;See my answer above. It looks like REPORT- stanza does not work in FAST mode while EXTRACT- does work. Weird.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:40:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501689#M195136</guid>
      <dc:creator>tomasmoser</dc:creator>
      <dc:date>2019-12-05T15:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501690#M195137</link>
      <description>&lt;P&gt;There should be no functional difference between &lt;CODE&gt;REPORT-&lt;/CODE&gt; and &lt;CODE&gt;EXTRACT-&lt;/CODE&gt; other than the order in which the 2 are done.  Definitely open a support case.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501690#M195137</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-05T15:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Search in fast vs smart modes does not return same number of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501691#M195138</link>
      <description>&lt;P&gt;The &lt;CODE&gt;sourcetype-wildcard-hack&lt;/CODE&gt; is fine and should have nothing to do with this.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-in-fast-vs-smart-modes-does-not-return-same-number-of/m-p/501691#M195138</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-05T15:48:50Z</dc:date>
    </item>
  </channel>
</rss>

