<?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 Is the search with eval with match in case statement elegible to report acceleration? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-the-search-with-eval-with-match-in-case-statement-elegible-to/m-p/299421#M175525</link>
    <description>&lt;P&gt;Hello everyone!!!&lt;/P&gt;

&lt;P&gt;This is a search that I was used to setting up a report with acceleration. But in the Report Acceleration Summaries appear as 0% Complete since yesterday. I don't know if this search is elegible to report acceleration?  Also any suggestions to speed up the search will be welcome.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=f5logs  | eval page_type = case(match(http_uri,"html"),"PDP", match(http_uri,"\/l\/"),"PLP", match(http_uri,"\/api\/(?!user)"),"All API", match(http_uri,"\/api\/user(?!\/placeOrder)"),"User API", match(http_uri,"\/g\/"),"GLP", match(http_uri,"\/c\/"),"Category", match(http_uri,"\.gif|\.jpg|\.js|\.css"),"Assets", match(http_uri,"/api\/user\/placeOrder"),"PlaceOrder", match(http_uri_query,"searchinfo"),"Search", match(http_uri,"\/searchsite\/default\.aspx|\/catalog\.tpl|\^/$$") AND match(http_uri_query,"^((?!searchinfo).)*$$"), "Home", match(http_uri,"^((?!html|\/l\/|\/api\/|\/g\/|\/searchsite\/default\.aspx|/catalog\.tpl|\^/$$|\/g\/|\/c\/|\.gif|\.jpg|\.js|\.css).)*$$") AND match(http_uri_query,"^((?!searchinfo).)*$$"),"Others") | stats count by page_type
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2487iDCC74E4449A3C8CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2017 21:54:37 GMT</pubDate>
    <dc:creator>aselios</dc:creator>
    <dc:date>2017-02-14T21:54:37Z</dc:date>
    <item>
      <title>Is the search with eval with match in case statement elegible to report acceleration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-the-search-with-eval-with-match-in-case-statement-elegible-to/m-p/299421#M175525</link>
      <description>&lt;P&gt;Hello everyone!!!&lt;/P&gt;

&lt;P&gt;This is a search that I was used to setting up a report with acceleration. But in the Report Acceleration Summaries appear as 0% Complete since yesterday. I don't know if this search is elegible to report acceleration?  Also any suggestions to speed up the search will be welcome.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=f5logs  | eval page_type = case(match(http_uri,"html"),"PDP", match(http_uri,"\/l\/"),"PLP", match(http_uri,"\/api\/(?!user)"),"All API", match(http_uri,"\/api\/user(?!\/placeOrder)"),"User API", match(http_uri,"\/g\/"),"GLP", match(http_uri,"\/c\/"),"Category", match(http_uri,"\.gif|\.jpg|\.js|\.css"),"Assets", match(http_uri,"/api\/user\/placeOrder"),"PlaceOrder", match(http_uri_query,"searchinfo"),"Search", match(http_uri,"\/searchsite\/default\.aspx|\/catalog\.tpl|\^/$$") AND match(http_uri_query,"^((?!searchinfo).)*$$"), "Home", match(http_uri,"^((?!html|\/l\/|\/api\/|\/g\/|\/searchsite\/default\.aspx|/catalog\.tpl|\^/$$|\/g\/|\/c\/|\.gif|\.jpg|\.js|\.css).)*$$") AND match(http_uri_query,"^((?!searchinfo).)*$$"),"Others") | stats count by page_type
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2487iDCC74E4449A3C8CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 21:54:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-the-search-with-eval-with-match-in-case-statement-elegible-to/m-p/299421#M175525</guid>
      <dc:creator>aselios</dc:creator>
      <dc:date>2017-02-14T21:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is the search with eval with match in case statement elegible to report acceleration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-the-search-with-eval-with-match-in-case-statement-elegible-to/m-p/299422#M175526</link>
      <description>&lt;P&gt;&lt;CODE&gt;eval&lt;/CODE&gt; and &lt;CODE&gt;match&lt;/CODE&gt; are no problem here, that doesn't stop a search from being accelerate-able.&lt;/P&gt;

&lt;P&gt;Looking at your summarization load of basically 1, it appears there has been a summarization search running since you enabled the summary... give it time if you have a huge amount of data in that sourcetype.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 23:06:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-the-search-with-eval-with-match-in-case-statement-elegible-to/m-p/299422#M175526</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2017-02-14T23:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is the search with eval with match in case statement elegible to report acceleration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-the-search-with-eval-with-match-in-case-statement-elegible-to/m-p/299423#M175527</link>
      <description>&lt;P&gt;Thanks Martin for clarifying.&lt;/P&gt;

&lt;P&gt;I found the problem. !!!&lt;BR /&gt;
The problem is with regular expression, substituting double &lt;CODE&gt;$$&lt;/CODE&gt; with single &lt;CODE&gt;$&lt;/CODE&gt; the report accelartion started to work. &lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 21:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-the-search-with-eval-with-match-in-case-statement-elegible-to/m-p/299423#M175527</guid>
      <dc:creator>aselios</dc:creator>
      <dc:date>2017-02-15T21:00:05Z</dc:date>
    </item>
  </channel>
</rss>

