<?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: Adding intention to second drilldown search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-intention-to-second-drilldown-search/m-p/12996#M1113</link>
    <description>&lt;P&gt;Thanks for that. Unfortunately, no luck - I've posted my updated config above. One thought I had was that the new ConvertToIntention requires a setting, and I'm not sure I'm creating one with the ExtendedFieldSearch. How do I go about doing that?&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2010 14:12:38 GMT</pubDate>
    <dc:creator>blinken</dc:creator>
    <dc:date>2010-06-24T14:12:38Z</dc:date>
    <item>
      <title>Adding intention to second drilldown search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-intention-to-second-drilldown-search/m-p/12994#M1111</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've got the advanced view below, which has the aim of producing a search-by-domain page for some Apache-like logs I've got Splunk indexing. &lt;/P&gt;

&lt;P&gt;The idea here is that there is a textbox where you can enter a domain, which will produce a chart of the top 20 usernames accessing that domain. Clicking on a user produces a drilldown FlashTimeline showing every URL accessed by that user against that domain - basically, I want to drilldown with two variables, username and domain.&lt;/P&gt;

&lt;P&gt;I've got two HiddenSearches - one for 'top 20 users given a domain' and then the drilldown one for 'all events for a given user and domain'. The first one works great, and I've got a stringreplace intention successfully inserting the domain from the text field into the search.&lt;/P&gt;

&lt;P&gt;Unfortunately, this intention is only inserted into the first search - the second one just gets a literal $domain_setting$ (and the username intention, which works).&lt;/P&gt;

&lt;P&gt;From reading other answers here, I'm guessing the $domain_setting$ variable is being consumed by the first search. I've tried using ConvertToIntention and ConvertToDrilldownSearch inside the second HiddenSearch, with no luck. What do I have to do to make the $domain_setting$ variable and/or the domain intention available for the second search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;view&amp;gt;
      &amp;lt;label&amp;gt;Contentkeeper Search Results - Search by Domain&amp;lt;/label&amp;gt;
      &amp;lt;module name="AccountBar" layoutPanel="appHeader"/&amp;gt;
      &amp;lt;module name="AppBar" layoutPanel="navigationHeader"/&amp;gt;
      &amp;lt;module name="Message" layoutPanel="messaging"&amp;gt;
        &amp;lt;param name="filter"&amp;gt;*&amp;lt;/param&amp;gt;
        &amp;lt;param name="clearOnJobDispatch"&amp;gt;False&amp;lt;/param&amp;gt;
        &amp;lt;param name="maxSize"&amp;gt;1&amp;lt;/param&amp;gt;
      &amp;lt;/module&amp;gt;


      &amp;lt;module name="ExtendedFieldSearch" layoutPanel="splSearchControls-inline"&amp;gt;
        &amp;lt;param name="field"&amp;gt;domain&amp;lt;/param&amp;gt;
        &amp;lt;param name="label"&amp;gt;Domain&amp;lt;/param&amp;gt;
        &amp;lt;param name="default"&amp;gt;www.apple.com&amp;lt;/param&amp;gt;
        &amp;lt;param name="intention"&amp;gt;
          &amp;lt;param name="name"&amp;gt;stringreplace&amp;lt;/param&amp;gt;
          &amp;lt;param name="arg"&amp;gt;
            &amp;lt;param name="domain_setting"&amp;gt;
              &amp;lt;param name="fillOnEmpty"&amp;gt;True&amp;lt;/param&amp;gt;
              &amp;lt;param name="value"&amp;gt;&amp;lt;/param&amp;gt;
            &amp;lt;/param&amp;gt;
          &amp;lt;/param&amp;gt;
        &amp;lt;/param&amp;gt;
        &amp;lt;param name="replacementMap"&amp;gt;
          &amp;lt;param name="arg"&amp;gt;
            &amp;lt;param name="domain_setting"&amp;gt;
              &amp;lt;param name="value"&amp;gt;&amp;lt;/param&amp;gt;
            &amp;lt;/param&amp;gt;
          &amp;lt;/param&amp;gt;
        &amp;lt;/param&amp;gt;
        &amp;lt;module name="TimeRangePicker" layoutPanel="splSearchControls-inline"&amp;gt;
          &amp;lt;param name="selected"&amp;gt;Last 60 minutes&amp;lt;/param&amp;gt;

          &amp;lt;module name="SubmitButton" layoutPanel="splSearchControls-inline"&amp;gt;

            &amp;lt;module name="HiddenSearch" layoutPanel="resultsAreaLeft" group="Top 20 users in the last 24 hours" autoRun="True"&amp;gt;
              &amp;lt;param name="search"&amp;gt;sourcetype="contentkeeper"  username!="ctu" username!="" domain="*$domain_setting$*" | top fullname&amp;lt;/param&amp;gt;

              &amp;lt;module name="SimpleResultsHeader" layoutPanel="resultsAreaLeft"&amp;gt;
                  &amp;lt;param name="entityName"&amp;gt;results&amp;lt;/param&amp;gt;
                  &amp;lt;param name="headerFormat"&amp;gt;Top 20 users $time$&amp;lt;/param&amp;gt;
              &amp;lt;/module&amp;gt;

              &amp;lt;module name="JobProgressIndicator"&amp;gt;&amp;lt;/module&amp;gt;

              &amp;lt;module name="HiddenChartFormatter" layoutPanel="resultsAreaLeft"&amp;gt;
                &amp;lt;param name="charting.chart"&amp;gt;bar&amp;lt;/param&amp;gt;

                &amp;lt;module name="FlashChart"&amp;gt;
                  &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;
                  &amp;lt;param name="enableResize"&amp;gt;False&amp;lt;/param&amp;gt;
                  &amp;lt;param name="height"&amp;gt;300px&amp;lt;/param&amp;gt;

                  &amp;lt;module name="HiddenSearch"&amp;gt;
                    &amp;lt;param name="search"&amp;gt;sourcetype="contentkeeper" username!="ctu" domain="*$domain_setting$*"&amp;lt;/param&amp;gt;

                    &amp;lt;!-- Handle drilldown --&amp;gt;
                    &amp;lt;module name="ConvertToIntention"&amp;gt;
                      &amp;lt;param name="preserveParentIntentions"&amp;gt;True&amp;lt;/param&amp;gt; 
                      &amp;lt;param name="intention"&amp;gt;
                        &amp;lt;param name="name"&amp;gt;addterm&amp;lt;/param&amp;gt;
                        &amp;lt;param name="arg"&amp;gt;
                          &amp;lt;param name="fullname"&amp;gt;$click.value$&amp;lt;/param&amp;gt;
                        &amp;lt;/param&amp;gt;
                      &amp;lt;/param&amp;gt;

                      &amp;lt;module name="JobProgressIndicator"&amp;gt;&amp;lt;/module&amp;gt;

                      &amp;lt;module name="SimpleResultsHeader"&amp;gt;
                        &amp;lt;param name="entityName"&amp;gt;results&amp;lt;/param&amp;gt;
                        &amp;lt;param name="headerFormat"&amp;gt;$count$ URLs for $click.value$ $time$&amp;lt;/param&amp;gt;
                      &amp;lt;/module&amp;gt;

                      &amp;lt;module name="FlashTimeline"&amp;gt;
                        &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;
                        &amp;lt;param name="enableResize"&amp;gt;False&amp;lt;/param&amp;gt;
                        &amp;lt;param name="height"&amp;gt;100px&amp;lt;/param&amp;gt;
                      &amp;lt;/module&amp;gt;

                      &amp;lt;module name="Paginator"&amp;gt;
                        &amp;lt;param name="entityName"&amp;gt;results&amp;lt;/param&amp;gt;
                        &amp;lt;module name="SimpleResultsTable"&amp;gt;
                          &amp;lt;param name="fields"&amp;gt;_time url category client_ip&amp;lt;/param&amp;gt;
                        &amp;lt;/module&amp;gt;
                      &amp;lt;/module&amp;gt;

                    &amp;lt;/module&amp;gt; &amp;lt;!-- ConvertToIntention --&amp;gt;
                  &amp;lt;/module&amp;gt;  &amp;lt;!-- HiddenSearch --&amp;gt;
                &amp;lt;/module&amp;gt; &amp;lt;!-- FlashChart --&amp;gt;
              &amp;lt;/module&amp;gt; &amp;lt;!-- HiddenChartFormatter --&amp;gt;

            &amp;lt;/module&amp;gt; &amp;lt;!-- HiddenSearch --&amp;gt;

          &amp;lt;/module&amp;gt; &amp;lt;!-- SubmitButton --&amp;gt;
        &amp;lt;/module&amp;gt; &amp;lt;!-- TimeRangePicker --&amp;gt;

      &amp;lt;/module&amp;gt; &amp;lt;!-- ExtendedFieldSearch --&amp;gt;

    &amp;lt;/view&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Edit: OK, so thanks to erydberg, I've added another convertToIntention as per &lt;A href="http://answers.splunk.com/questions/3472/drilldown-with-stringreplace-intention" rel="nofollow"&gt;http://answers.splunk.com/questions/3472/drilldown-with-stringreplace-intention&lt;/A&gt;. Unfortunately, no luck. &lt;/P&gt;

&lt;P&gt;My current theory is that I'm not creating a setting with the ExtendedFieldSearch for the &lt;CODE&gt;&amp;lt;param name="settingToConvert"&amp;gt;domain&amp;lt;/param&amp;gt;&lt;/CODE&gt; line. How do I go about doing that?&lt;/P&gt;

&lt;P&gt;Here's what I've got now:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;view&amp;gt;
  &amp;lt;label&amp;gt;Contentkeeper Search Results - Search by Domain&amp;lt;/label&amp;gt;
  &amp;lt;module name="AccountBar" layoutPanel="appHeader"/&amp;gt;
  &amp;lt;module name="AppBar" layoutPanel="navigationHeader"/&amp;gt;
  &amp;lt;module name="Message" layoutPanel="messaging"&amp;gt;
    &amp;lt;param name="filter"&amp;gt;*&amp;lt;/param&amp;gt;
    &amp;lt;param name="clearOnJobDispatch"&amp;gt;False&amp;lt;/param&amp;gt;
    &amp;lt;param name="maxSize"&amp;gt;1&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;


  &amp;lt;module name="ExtendedFieldSearch" layoutPanel="splSearchControls-inline"&amp;gt;
    &amp;lt;param name="field"&amp;gt;domain&amp;lt;/param&amp;gt;
    &amp;lt;param name="label"&amp;gt;Domain&amp;lt;/param&amp;gt;
    &amp;lt;param name="default"&amp;gt;www.apple.com&amp;lt;/param&amp;gt;
    &amp;lt;param name="intention"&amp;gt;
      &amp;lt;param name="name"&amp;gt;stringreplace&amp;lt;/param&amp;gt;
      &amp;lt;param name="arg"&amp;gt;
        &amp;lt;param name="domain_intention"&amp;gt;
          &amp;lt;param name="fillOnEmpty"&amp;gt;True&amp;lt;/param&amp;gt;
          &amp;lt;param name="value"&amp;gt;&amp;lt;/param&amp;gt;
        &amp;lt;/param&amp;gt;
      &amp;lt;/param&amp;gt;
    &amp;lt;/param&amp;gt;
    &amp;lt;param name="replacementMap"&amp;gt;
      &amp;lt;param name="arg"&amp;gt;
        &amp;lt;param name="domain_intention"&amp;gt;
          &amp;lt;param name="value"&amp;gt;&amp;lt;/param&amp;gt;
        &amp;lt;/param&amp;gt;
      &amp;lt;/param&amp;gt;
    &amp;lt;/param&amp;gt;
    &amp;lt;module name="TimeRangePicker" layoutPanel="splSearchControls-inline"&amp;gt;
      &amp;lt;param name="selected"&amp;gt;Last 60 minutes&amp;lt;/param&amp;gt;

      &amp;lt;module name="SubmitButton" layoutPanel="splSearchControls-inline"&amp;gt;

        &amp;lt;module name="HiddenSearch" layoutPanel="resultsAreaLeft" group="Top 20 users in the last 24 hours" autoRun="True"&amp;gt;
          &amp;lt;param name="search"&amp;gt;sourcetype="contentkeeper"  username!="ctu" username!="" domain="*$domain_intention$*" | top fullname&amp;lt;/param&amp;gt;

          &amp;lt;module name="SimpleResultsHeader" layoutPanel="resultsAreaLeft"&amp;gt;
              &amp;lt;param name="entityName"&amp;gt;results&amp;lt;/param&amp;gt;
              &amp;lt;param name="headerFormat"&amp;gt;Top 20 users $time$&amp;lt;/param&amp;gt;
          &amp;lt;/module&amp;gt;

          &amp;lt;module name="JobProgressIndicator"&amp;gt;&amp;lt;/module&amp;gt;

          &amp;lt;module name="HiddenChartFormatter" layoutPanel="resultsAreaLeft"&amp;gt;
            &amp;lt;param name="charting.chart"&amp;gt;bar&amp;lt;/param&amp;gt;

            &amp;lt;module name="FlashChart"&amp;gt;
              &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;
              &amp;lt;param name="enableResize"&amp;gt;False&amp;lt;/param&amp;gt;
              &amp;lt;param name="height"&amp;gt;300px&amp;lt;/param&amp;gt;

              &amp;lt;!-- Handle drilldown --&amp;gt;
              &amp;lt;module name="ConvertToIntention"&amp;gt;
                &amp;lt;param name="intention"&amp;gt;
                  &amp;lt;param name="name"&amp;gt;addterm&amp;lt;/param&amp;gt;
                  &amp;lt;param name="arg"&amp;gt;
                    &amp;lt;param name="fullname"&amp;gt;$click.value$&amp;lt;/param&amp;gt;
                  &amp;lt;/param&amp;gt;
                &amp;lt;/param&amp;gt;

                &amp;lt;module name="ConvertToIntention"&amp;gt;
                  &amp;lt;param name="settingToConvert"&amp;gt;domain&amp;lt;/param&amp;gt; 
                  &amp;lt;param name="intention"&amp;gt;
                    &amp;lt;param name="name"&amp;gt;addterm&amp;lt;/param&amp;gt;
                    &amp;lt;param name="arg"&amp;gt;
                      &amp;lt;param name="domain"&amp;gt;
                        &amp;lt;param name="fillOnEmpty"&amp;gt;True&amp;lt;/param&amp;gt;
                        &amp;lt;param name="value"&amp;gt;$target$&amp;lt;/param&amp;gt;
                      &amp;lt;/param&amp;gt;
                    &amp;lt;/param&amp;gt;
                  &amp;lt;/param&amp;gt;

                  &amp;lt;module name="HiddenSearch"&amp;gt;
                    &amp;lt;param name="search"&amp;gt;sourcetype="contentkeeper" username!="ctu"&amp;lt;/param&amp;gt;

                    &amp;lt;module name="JobProgressIndicator"&amp;gt;&amp;lt;/module&amp;gt;

                    &amp;lt;module name="SimpleResultsHeader"&amp;gt;
                      &amp;lt;param name="entityName"&amp;gt;results&amp;lt;/param&amp;gt;
                      &amp;lt;param name="headerFormat"&amp;gt;$count$ URLs for $click.value$ $time$&amp;lt;/param&amp;gt;
                    &amp;lt;/module&amp;gt;

                    &amp;lt;module name="FlashTimeline"&amp;gt;
                      &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;
                      &amp;lt;param name="enableResize"&amp;gt;False&amp;lt;/param&amp;gt;
                      &amp;lt;param name="height"&amp;gt;100px&amp;lt;/param&amp;gt;
                    &amp;lt;/module&amp;gt;

                    &amp;lt;module name="Paginator"&amp;gt;
                      &amp;lt;param name="entityName"&amp;gt;results&amp;lt;/param&amp;gt;
                      &amp;lt;module name="SimpleResultsTable"&amp;gt;
                        &amp;lt;param name="fields"&amp;gt;_time url category client_ip&amp;lt;/param&amp;gt;
                      &amp;lt;/module&amp;gt;
                    &amp;lt;/module&amp;gt;

                  &amp;lt;/module&amp;gt; &amp;lt;!-- ConvertToIntention --&amp;gt;
                &amp;lt;/module&amp;gt; &amp;lt;!-- ConvertToIntention --&amp;gt;
              &amp;lt;/module&amp;gt;  &amp;lt;!-- HiddenSearch --&amp;gt;
            &amp;lt;/module&amp;gt; &amp;lt;!-- FlashChart --&amp;gt;
          &amp;lt;/module&amp;gt; &amp;lt;!-- HiddenChartFormatter --&amp;gt;

        &amp;lt;/module&amp;gt; &amp;lt;!-- HiddenSearch --&amp;gt;

      &amp;lt;/module&amp;gt; &amp;lt;!-- SubmitButton --&amp;gt;
    &amp;lt;/module&amp;gt; &amp;lt;!-- TimeRangePicker --&amp;gt;

  &amp;lt;/module&amp;gt; &amp;lt;!-- ExtendedFieldSearch --&amp;gt;

&amp;lt;/view&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 May 2010 15:15:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-intention-to-second-drilldown-search/m-p/12994#M1111</guid>
      <dc:creator>blinken</dc:creator>
      <dc:date>2010-05-06T15:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding intention to second drilldown search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-intention-to-second-drilldown-search/m-p/12995#M1112</link>
      <description>&lt;P&gt;I think the answer to this question might help you: &lt;A href="http://answers.splunk.com/questions/3472/drilldown-with-stringreplace-intention" rel="nofollow"&gt;http://answers.splunk.com/questions/3472/drilldown-with-stringreplace-intention&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You need to add another intention to get you domain_name from your textbox again, it's consumed by the first search using it.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2010 03:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-intention-to-second-drilldown-search/m-p/12995#M1112</guid>
      <dc:creator>erydberg</dc:creator>
      <dc:date>2010-06-10T03:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding intention to second drilldown search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-intention-to-second-drilldown-search/m-p/12996#M1113</link>
      <description>&lt;P&gt;Thanks for that. Unfortunately, no luck - I've posted my updated config above. One thought I had was that the new ConvertToIntention requires a setting, and I'm not sure I'm creating one with the ExtendedFieldSearch. How do I go about doing that?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2010 14:12:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-intention-to-second-drilldown-search/m-p/12996#M1113</guid>
      <dc:creator>blinken</dc:creator>
      <dc:date>2010-06-24T14:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding intention to second drilldown search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-intention-to-second-drilldown-search/m-p/12997#M1114</link>
      <description>&lt;P&gt;The problem is that ExtendedFieldSearch does &lt;EM&gt;not&lt;/EM&gt; create a "setting", but instead creates a new "intention" directly. Therefore, when you try to convert the setting a second time to re-create the intention, it won't work. &lt;/P&gt;

&lt;P&gt;One solution is to replace the ExtendedFieldSearch with a TextSetting module plus a ConvertToIntention. This will create a setting, and then convert it to an intention. When this intention is consumed, the setting will still be available for you to reconvert.&lt;/P&gt;

&lt;P&gt;A new problem with this that you might run into is that TextSetting seems to be a little more limited than ExtendedFieldSearch, especially regarding seed values, default, and unspecified value behavior.&lt;/P&gt;

&lt;P&gt;I haven't come across another way with the modules available as of 4.1.4.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2010 21:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-intention-to-second-drilldown-search/m-p/12997#M1114</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-08-19T21:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding intention to second drilldown search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-intention-to-second-drilldown-search/m-p/12998#M1115</link>
      <description>&lt;P&gt;Thanks - using TextSetting does the trick, but you're right about it being limited. The idea was to have this particular page the target of a drilldown from another page, which TextSetting doesn't appear to work with. &lt;/P&gt;

&lt;P&gt;So I guess I've got a choice between receiving that top-level drilldown using ExtendedFieldSearch (which has a default value that appears to be populated from the top-level drilldown intention), or using the TextSetting and having a slightly more intuitive bottom-level drilldown. &lt;/P&gt;

&lt;P&gt;Thanks for the assistance!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2010 14:31:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-intention-to-second-drilldown-search/m-p/12998#M1115</guid>
      <dc:creator>blinken</dc:creator>
      <dc:date>2010-09-20T14:31:38Z</dc:date>
    </item>
  </channel>
</rss>

