<?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: Parameter passing in Splunk URL for application or Server in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56072#M179828</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have changed the  dashboard_live XML like this &lt;/P&gt;

&lt;P&gt;&lt;MODULE name="URLLoader" layoutpanel="panel_row2_col1" autorun="True"&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;!-- The first list of sources --&gt;

&lt;P&gt;&lt;MODULE name="HiddenSearch"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;| metadata type=sources | search "$host$" totalCount&amp;gt;0 | rename totalCount as Count recentTime as "Last Update" | table source Count "Last Update" | fieldformat Count=tostring(Count, "commas") | fieldformat "Last Update"=strftime('Last Update', "%m/%d/%Y %T")&lt;BR /&gt;
.....&lt;BR /&gt;
...&lt;BR /&gt;
....&lt;BR /&gt;
...&lt;BR /&gt;
...&lt;BR /&gt;
....&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;and using the url lke this &lt;/P&gt;

&lt;P&gt;&lt;A href="http://summer1:8031/en-US/app/search/dashboard_live?host=summer2"&gt;http://summer1:8031/en-US/app/search/dashboard_live?host=summer2&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and even with this&lt;/P&gt;

&lt;P&gt;&lt;A href="http://summer1:8031/en-US/app/search/dashboard_live?host=%22summer2"&gt;http://summer1:8031/en-US/app/search/dashboard_live?host="summer2&lt;/A&gt;"&lt;/P&gt;

&lt;P&gt;the page keeps showing status as loading and nothings gets loaded.&lt;/P&gt;

&lt;P&gt;However if i use the same  "| metadata type=sources | search "$host$" totalCount&amp;gt;0 | rename totalCount as Count recentTime as "Last Update" | table source Count "Last Update" | fieldformat Count=tostring(Count, "commas") | fieldformat "Last Update"=strftime('Last Update', "%m/%d/%Y %T") by replacing the $host$ with summer2 fetchers me the results.&lt;/P&gt;

&lt;P&gt;Whats wrong?&lt;/P&gt;

&lt;P&gt;Thanks in Advance,&lt;BR /&gt;
Rehana&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2012 12:37:49 GMT</pubDate>
    <dc:creator>ReanaKhan</dc:creator>
    <dc:date>2012-01-25T12:37:49Z</dc:date>
    <item>
      <title>Parameter passing in Splunk URL for application or Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56068#M179824</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i am looking for being able to pass on Filter in URL of splunk for any laucher page, which will be used to filter what is being displayed.&lt;/P&gt;

&lt;P&gt;Like it can be used to display the log details of only certain Application logs or logs on a particular server.&lt;/P&gt;

&lt;P&gt;Does Anybody have an idea about the same.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Rehana&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2012 07:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56068#M179824</guid>
      <dc:creator>ReanaKhan</dc:creator>
      <dc:date>2012-01-23T07:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter passing in Splunk URL for application or Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56069#M179825</link>
      <description>&lt;P&gt;The following two modules could be useful for something like that in the SideView_Utils app: &lt;/P&gt;

&lt;P&gt;Redirector&lt;/P&gt;

&lt;P&gt;URLLoader&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/apps/36405/sideview-utils"&gt;http://splunk-base.splunk.com/apps/36405/sideview-utils&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2012 07:41:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56069#M179825</guid>
      <dc:creator>imrago</dc:creator>
      <dc:date>2012-01-23T07:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter passing in Splunk URL for application or Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56070#M179826</link>
      <description>&lt;P&gt;I am looking into being able to add up a parameter from Apache to Splunk URL and Splunk being able to working with that URL filter.&lt;/P&gt;

&lt;P&gt;This Side ViewUtils however seems to be working on click of button and stuff..&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2012 09:31:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56070#M179826</guid>
      <dc:creator>ReanaKhan</dc:creator>
      <dc:date>2012-01-23T09:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter passing in Splunk URL for application or Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56071#M179827</link>
      <description>&lt;P&gt;Splunk.Module.URLLoader extends Splunk.Module&lt;/P&gt;

&lt;P&gt;This module will look at the page URL and for every querystring argument foo=bar, it will create a key in the context object with name 'foo' and value 'bar'&lt;/P&gt;

&lt;P&gt;With the help of this you could use the passed on parameter in your search queries to filter out results.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2012 12:07:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56071#M179827</guid>
      <dc:creator>imrago</dc:creator>
      <dc:date>2012-01-23T12:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter passing in Splunk URL for application or Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56072#M179828</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have changed the  dashboard_live XML like this &lt;/P&gt;

&lt;P&gt;&lt;MODULE name="URLLoader" layoutpanel="panel_row2_col1" autorun="True"&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;!-- The first list of sources --&gt;

&lt;P&gt;&lt;MODULE name="HiddenSearch"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;| metadata type=sources | search "$host$" totalCount&amp;gt;0 | rename totalCount as Count recentTime as "Last Update" | table source Count "Last Update" | fieldformat Count=tostring(Count, "commas") | fieldformat "Last Update"=strftime('Last Update', "%m/%d/%Y %T")&lt;BR /&gt;
.....&lt;BR /&gt;
...&lt;BR /&gt;
....&lt;BR /&gt;
...&lt;BR /&gt;
...&lt;BR /&gt;
....&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;and using the url lke this &lt;/P&gt;

&lt;P&gt;&lt;A href="http://summer1:8031/en-US/app/search/dashboard_live?host=summer2"&gt;http://summer1:8031/en-US/app/search/dashboard_live?host=summer2&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and even with this&lt;/P&gt;

&lt;P&gt;&lt;A href="http://summer1:8031/en-US/app/search/dashboard_live?host=%22summer2"&gt;http://summer1:8031/en-US/app/search/dashboard_live?host="summer2&lt;/A&gt;"&lt;/P&gt;

&lt;P&gt;the page keeps showing status as loading and nothings gets loaded.&lt;/P&gt;

&lt;P&gt;However if i use the same  "| metadata type=sources | search "$host$" totalCount&amp;gt;0 | rename totalCount as Count recentTime as "Last Update" | table source Count "Last Update" | fieldformat Count=tostring(Count, "commas") | fieldformat "Last Update"=strftime('Last Update', "%m/%d/%Y %T") by replacing the $host$ with summer2 fetchers me the results.&lt;/P&gt;

&lt;P&gt;Whats wrong?&lt;/P&gt;

&lt;P&gt;Thanks in Advance,&lt;BR /&gt;
Rehana&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2012 12:37:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56072#M179828</guid>
      <dc:creator>ReanaKhan</dc:creator>
      <dc:date>2012-01-25T12:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter passing in Splunk URL for application or Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56073#M179829</link>
      <description>&lt;P&gt;Search module should be used instead of HiddenSearch, a working example :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;view template="dashboard.html"&amp;gt;
  &amp;lt;label&amp;gt;Index activity overview&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="SideviewUtils" layoutPanel="panel_row1_col1"/&amp;gt;
  &amp;lt;module name="URLLoader" layoutPanel="panel_row1_col1"&amp;gt;
    &amp;lt;module name="Search" layoutpanel="panel_row1_col1" autoRun="True"&amp;gt;
     &amp;lt;param name="search"&amp;gt;index=_internal host="$host$" source=*web_access.log*         /app/  | search user=* | timechart count by user&amp;lt;/param&amp;gt;
     &amp;lt;param name="earliest"&amp;gt;-24h&amp;lt;/param&amp;gt; 
     &amp;lt;module name="JobProgressIndicator"/&amp;gt;
     &amp;lt;module name="HiddenChartFormatter"&amp;gt;
       &amp;lt;param name="chartTitle"&amp;gt;Events by host&amp;lt;/param&amp;gt;
       &amp;lt;module name="FlashChart" /&amp;gt;
     &amp;lt;/module&amp;gt;
   &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/view&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jan 2012 13:41:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56073#M179829</guid>
      <dc:creator>imrago</dc:creator>
      <dc:date>2012-01-25T13:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter passing in Splunk URL for application or Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56074#M179830</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;
In above working example, we are passing one host parameter like host="xxx.corp.com".it is working fine.&lt;BR /&gt;
How to pass two or more host parameter in URL and how search will be happen using URLloader? &lt;BR /&gt;
In splunk, we can search two host parameter by passing host="xxx.corp.com" OR host="yyy.corp.com" but how we can search this type of scenario using URLloader?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 06:02:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56074#M179830</guid>
      <dc:creator>gaurav_a</dc:creator>
      <dc:date>2012-03-16T06:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter passing in Splunk URL for application or Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56075#M179831</link>
      <description>&lt;P&gt;Hi Any answer for above scenario. &lt;BR /&gt;
BAsically looking to be able to pass two value against one param in view.&lt;BR /&gt;
How is it accomplished?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 09:19:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Parameter-passing-in-Splunk-URL-for-application-or-Server/m-p/56075#M179831</guid>
      <dc:creator>RehanaKhan</dc:creator>
      <dc:date>2012-03-16T09:19:24Z</dc:date>
    </item>
  </channel>
</rss>

