<?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: Esacaping the slash in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25849#M177614</link>
    <description>&lt;P&gt;not familiar with Hadoop. i think u can update the hidden search including this regex.&lt;BR /&gt;
thanks&lt;/P&gt;</description>
    <pubDate>Thu, 08 Nov 2012 09:20:07 GMT</pubDate>
    <dc:creator>smolcj</dc:creator>
    <dc:date>2012-11-08T09:20:07Z</dc:date>
    <item>
      <title>Esacaping the slash</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25843#M177608</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;By selecting the sources, in the search app i got the search query as&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="c:\taskmanager\taskmanager_log|Transaction TaskAction startswith=START endswith=Succeeded|
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but i want the query to be as &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="c:\\taskmanager\\taskmanager_log|Transaction TaskAction startswith|
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;please verify the Xml code below and reply the changes to do..&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="StaticContentSample" layoutpanel="panel_row4_col1"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="text" /&gt;Now we take a bunch of leaps ahead and put it all together. We put in a Sorter module, a Paginator module. We put in a HiddenSearch+SimpleResultsHeader pattern to give us 'Sources (208)'. Then we duplicate the same pattern for both Sourcetypes and Hosts.&lt;BR /&gt;
  &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;BR /&gt;
  &lt;MODULE name="SearchSelectLister" layoutpanel="panel_row4_col1" group="Drilldowns - 5"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="label" /&gt;which index&lt;BR /&gt;
    &lt;PARAM name="settingToCreate" /&gt;index_setting&lt;BR /&gt;
    &lt;PARAM name="search" /&gt;| eventcount summarize=false index=* | search index!="splunklogger" index!="summary" index!="history" | sort -index&lt;BR /&gt;
    &lt;PARAM name="searchWhenChanged" /&gt;True&lt;BR /&gt;
    &lt;PARAM name="selected" /&gt;main&lt;BR /&gt;
    &lt;PARAM name="searchFieldsToDisplay" /&gt;&lt;BR /&gt;
      &lt;LIST&gt;&lt;BR /&gt;
        &lt;PARAM name="label" /&gt;index&lt;BR /&gt;
        &lt;PARAM name="value" /&gt;index&lt;BR /&gt;
      &lt;/LIST&gt;&lt;BR /&gt;
    &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="ConvertToIntention"&amp;gt;
  &amp;lt;param name="settingToConvert"&amp;gt;index_setting&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="index"&amp;gt;
        &amp;lt;param name="fillOnEmpty"&amp;gt;True&amp;lt;/param&amp;gt;
        &amp;lt;param name="prefix"&amp;gt;index=&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;| metadata type=sources $index$&amp;lt;/param&amp;gt;
    &amp;lt;module name="SimpleResultsHeader" layoutPanel="panel_row4_col1_grp1"&amp;gt;
      &amp;lt;param name="entityName"&amp;gt;results&amp;lt;/param&amp;gt;
      &amp;lt;param name="headerFormat"&amp;gt;Sources (%(count)s)&amp;lt;/param&amp;gt;
    &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
  &amp;lt;----&amp;gt;
  &amp;lt;module name="Sorter" layoutPanel="panel_row4_col1_grp1"&amp;gt;
    &amp;lt;param name="sortKey"&amp;gt;totalCount&amp;lt;/param&amp;gt;
    &amp;lt;param name="sortDir"&amp;gt;desc&amp;lt;/param&amp;gt;
    &amp;lt;param name="fields"&amp;gt;
      &amp;lt;list&amp;gt;
        &amp;lt;param name="label"&amp;gt;Source&amp;lt;/param&amp;gt;
        &amp;lt;param name="value"&amp;gt;source&amp;lt;/param&amp;gt;
      &amp;lt;/list&amp;gt;
      &amp;lt;list&amp;gt;
        &amp;lt;param name="label"&amp;gt;Total Count&amp;lt;/param&amp;gt;
        &amp;lt;param name="value"&amp;gt;totalCount&amp;lt;/param&amp;gt;
      &amp;lt;/list&amp;gt;
      &amp;lt;list&amp;gt;
        &amp;lt;param name="label"&amp;gt;First Time&amp;lt;/param&amp;gt;
        &amp;lt;param name="value"&amp;gt;firstTime&amp;lt;/param&amp;gt;
      &amp;lt;/list&amp;gt;
    &amp;lt;/param&amp;gt;

    &amp;lt;module name="Paginator"&amp;gt;
      &amp;lt;param name="count"&amp;gt;10&amp;lt;/param&amp;gt;
      &amp;lt;param name="entityName"&amp;gt;settings&amp;lt;/param&amp;gt;
      &amp;lt;param name="maxPages"&amp;gt;10&amp;lt;/param&amp;gt;

      &amp;lt;!--  This next module generates the blue links. Note that although it configures its own internal search, 
      it has a flag that allows it to apply intentions from the main context to its internal search.  
      --&amp;gt;
      &amp;lt;module name="SearchLinkLister"&amp;gt;
        &amp;lt;param name="settingToCreate"&amp;gt;list1&amp;lt;/param&amp;gt;
        &amp;lt;param name="search"&amp;gt;| metadata type=sources $index$ &amp;lt;/param&amp;gt;       
             &amp;lt;param name="settingToCreate"&amp;gt;list1&amp;lt;/param&amp;gt;
              &amp;lt;param name="searchFieldsToDisplay"&amp;gt;
          &amp;lt;list&amp;gt;
            &amp;lt;param name="label"&amp;gt;source&amp;lt;/param&amp;gt;
            &amp;lt;param name="value"&amp;gt;source&amp;lt;/param&amp;gt;
          &amp;lt;/list&amp;gt;
          &amp;lt;list&amp;gt;
            &amp;lt;param name="label"&amp;gt;totalCount&amp;lt;/param&amp;gt;
            &amp;lt;param name="labelFormat"&amp;gt;number&amp;lt;/param&amp;gt;
          &amp;lt;/list&amp;gt;
        &amp;lt;/param&amp;gt;

              &amp;lt;module name="HiddenSearch"&amp;gt;
                &amp;lt;param name="search"&amp;gt;&amp;lt;/param&amp;gt;
                 &amp;lt;param name="search"&amp;gt;
                  source="$pub$"| transaction TaskBP startswith=START endswith=Succeeded
                &amp;lt;/param&amp;gt;
                &amp;lt;!-- tells the addterm intention to put our term in the first search clause no matter what. --&amp;gt;
              &amp;lt;param name="flags"&amp;gt;&amp;lt;list&amp;gt;indexed&amp;lt;/list&amp;gt;&amp;lt;/param&amp;gt;


        &amp;lt;module name="ConvertToIntention"&amp;gt;
            &amp;lt;param name="settingToConvert"&amp;gt;list1&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="pub"&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;!-- tells the addterm intention to put our term in the first search clause no matter what. --&amp;gt;
              &amp;lt;param name="flags"&amp;gt;&amp;lt;list&amp;gt;indexed&amp;lt;/list&amp;gt;&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Nov 2012 04:43:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25843#M177608</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-07T04:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Esacaping the slash</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25844#M177609</link>
      <description>&lt;P&gt;It's a bit rude to command people to read through a page or two of XML code just for "verifying". Identify which specific problems you're having, which specific section of the code you deem to be relevant, then paste that.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 09:04:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25844#M177609</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-11-07T09:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Esacaping the slash</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25845#M177610</link>
      <description>&lt;P&gt;Oh, also please start indenting code blocks with 4 spaces when pasting here on this site. Otherwise the formatting will be incorrect and your questions will then make even less sense...&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 09:05:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25845#M177610</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-11-07T09:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Esacaping the slash</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25846#M177611</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
i am not pretty sure about the issue, but i can help you to identify whether your issue is same as mine.&lt;BR /&gt;
 1. save your log in C folder (without including any directories or sub directories)&lt;BR /&gt;
 2. &lt;CODE&gt;....(yoursearch)| replace *\\* with *\\\\* in source&lt;/CODE&gt;&lt;BR /&gt;
if you are getting your expected result you can start playing around to find a suitable regex to replace all the slashes in your source &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
you can refer  &lt;A href="http://splunk-base.splunk.com/answers/64686/drop-down-menu-with-source"&gt;this answer&lt;/A&gt; also &lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 10:11:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25846#M177611</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2012-11-07T10:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Esacaping the slash</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25847#M177612</link>
      <description>&lt;P&gt;You seem to have two "search" parameters in your HiddenSearch for your updated search string. Remove the empty parameter.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 16:27:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25847#M177612</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-11-07T16:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Esacaping the slash</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25848#M177613</link>
      <description>&lt;P&gt;where to replace *\* with *\\* ..actually i am getting the data source directlty from the Hadoop&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2012 06:17:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25848#M177613</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-08T06:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Esacaping the slash</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25849#M177614</link>
      <description>&lt;P&gt;not familiar with Hadoop. i think u can update the hidden search including this regex.&lt;BR /&gt;
thanks&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2012 09:20:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25849#M177614</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2012-11-08T09:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Esacaping the slash</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25850#M177615</link>
      <description>&lt;P&gt;in the hidden search i tried this (replace *\* with *\\* in source   &lt;/P&gt;

&lt;P&gt;but it shows me error&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2012 13:30:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Esacaping-the-slash/m-p/25850#M177615</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-15T13:30:26Z</dc:date>
    </item>
  </channel>
</rss>

