<?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: slash error in the source in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37078#M178606</link>
    <description>&lt;P&gt;cool, now you can write a gex to replace the front slash to backslash |rex mode=sed field=source  "s/\///g" i.e. "sfrontslashbackslashfrontslashfrontslashfrontslashg"&lt;BR /&gt;
because of the formatting done by splunkbase backslash in second place i skipped.. read it and replace those words with corresponding slashes&lt;BR /&gt;
thank you&lt;/P&gt;</description>
    <pubDate>Mon, 19 Nov 2012 11:28:12 GMT</pubDate>
    <dc:creator>smolcj</dc:creator>
    <dc:date>2012-11-19T11:28:12Z</dc:date>
    <item>
      <title>slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37063#M178591</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;

&lt;P&gt;i have created the view contains the dropdown for index and if i select the index i will get all the sources in that index like below&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/source.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;then if i select the any source i takes me to the search app as&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/search.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;here the source contains only one single backslash ..but i need double back slash in my source &lt;/P&gt;

&lt;P&gt;This is the rough piece of code i have used ..to get the double slash in my source please tel help at what place i have to modify the code ..&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;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;
param name="applyOuterIntentionsToInternalSearch"&amp;gt;True&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; 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;

&lt;P&gt;thanks in advance &lt;/P&gt;

&lt;P&gt;poornima &lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2012 09:15:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37063#M178591</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-16T09:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37064#M178592</link>
      <description>&lt;P&gt;Poornima,&lt;/P&gt;

&lt;P&gt;One option is to change the format of sources returned in your query rather than trying to change it when it is clicked.&lt;/P&gt;

&lt;P&gt;Change this search:&lt;BR /&gt;
     | metadata type=sources $index$&lt;/P&gt;

&lt;P&gt;to this:&lt;BR /&gt;
     | metadata type=sources $index$ | rex mode=sed field=source "s/\{1}/\\\//g"&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2012 15:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37064#M178592</guid>
      <dc:creator>okrabbe_splunk</dc:creator>
      <dc:date>2012-11-16T15:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37065#M178593</link>
      <description>&lt;P&gt;hi Okrabbe &lt;/P&gt;

&lt;P&gt;Thanks for your answer ..&lt;/P&gt;

&lt;P&gt;as u said i changed the query as above in both places in( Hidden search and also in the searchLinkLister) but still it is not coming&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 05:43:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37065#M178593</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-19T05:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37066#M178594</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|rex mode=sed field=source  "s/\\\{1}/\\\\\//g" | rex mode=sed field=source  "s////g" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;use this regex instead &lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 05:55:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37066#M178594</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2012-11-19T05:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37067#M178595</link>
      <description>&lt;P&gt;actually in the above code where to insert this&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 08:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37067#M178595</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-19T08:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37068#M178596</link>
      <description>&lt;P&gt;In your search.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 08:13:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37068#M178596</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-11-19T08:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37069#M178597</link>
      <description>&lt;P&gt;i have searchLinkLister and also the Hiddensearch ..does i have to use the command in both the places??? or oly in hiddensearch&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 08:20:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37069#M178597</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-19T08:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37070#M178598</link>
      <description>&lt;P&gt;&lt;MODULE name="HiddenSearch"&gt;&lt;BR /&gt;
             &lt;OBJECT&gt;&lt;PARAM name="search" /&gt; source=$pub$|rex mode=sed field=source  "s/\{1}/\\\//g" | rex mode=sed field=source  "s////g"| transaction TaskBP startswith=START endswith=Succeeded &lt;BR /&gt;
i think this will work&lt;BR /&gt;
thank you&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 08:29:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37070#M178598</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2012-11-19T08:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37071#M178599</link>
      <description>&lt;P&gt;hi smolcj ...thanks for your response i actually did what u have quoted  it shows some error like&lt;/P&gt;

&lt;P&gt;PARSER: Applying intentions failed Error in 'rex' command: Failed to initialize sed. Empty regular expression.&lt;/P&gt;

&lt;P&gt;Encountered an unexpected error while parsing intentions.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 08:45:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37071#M178599</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-19T08:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37072#M178600</link>
      <description>&lt;P&gt;i think the regex in comment is missing some slashes, can you try with the one posted in answer.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 09:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37072#M178600</guid>
      <dc:creator>sruthy</dc:creator>
      <dc:date>2012-11-19T09:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37073#M178601</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;

&lt;P&gt;i tried since i am getting the error&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 09:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37073#M178601</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-19T09:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37074#M178602</link>
      <description>&lt;P&gt;The second rex statement in the answer is empty - I don't know what the idea is there, but I think you should just remove it and use only the first rex statement. See what it gives you.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 10:27:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37074#M178602</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-11-19T10:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37075#M178603</link>
      <description>&lt;P&gt;Hi Ayn ,&lt;/P&gt;

&lt;P&gt;i tried ..but i get in the search app i got &lt;/P&gt;

&lt;P&gt;source=C:\Users\20875\Desktop\TaskManager\TaskManager_all.txt | rex mode=sed field=source  "s/\{1}/\\\//g"   | transaction TaskBP startswith=START endswith=Succeeded&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 10:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37075#M178603</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-19T10:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37076#M178604</link>
      <description>&lt;P&gt;You need to add the rex statement to the populating search in your SearchLinkLister (the one using the metadata command).&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 10:45:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37076#M178604</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-11-19T10:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37077#M178605</link>
      <description>&lt;P&gt;hi ayn,&lt;/P&gt;

&lt;P&gt;now i am getting lik below&lt;/P&gt;

&lt;P&gt;source=C:\/Users\/20875\/Desktop\/TaskManager\/TaskManager_all.txt  | transaction TaskBP startswith=START endswith=Succeeded&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 11:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37077#M178605</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-19T11:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37078#M178606</link>
      <description>&lt;P&gt;cool, now you can write a gex to replace the front slash to backslash |rex mode=sed field=source  "s/\///g" i.e. "sfrontslashbackslashfrontslashfrontslashfrontslashg"&lt;BR /&gt;
because of the formatting done by splunkbase backslash in second place i skipped.. read it and replace those words with corresponding slashes&lt;BR /&gt;
thank you&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 11:28:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37078#M178606</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2012-11-19T11:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37079#M178607</link>
      <description>&lt;P&gt;hi guys,&lt;/P&gt;

&lt;P&gt;finally i tried |rex mode=sed field=source  "s/\{1}/\\\//g" | rex mode=sed field=source  "s/\///g"&lt;/P&gt;

&lt;P&gt;it works properly...&lt;/P&gt;

&lt;P&gt;thanks all of of you ...&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 11:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37079#M178607</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-19T11:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: slash error in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37080#M178608</link>
      <description>&lt;P&gt;Awesome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 11:50:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/slash-error-in-the-source/m-p/37080#M178608</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-11-19T11:50:12Z</dc:date>
    </item>
  </channel>
</rss>

