Splunk Search

searchlinklister

splunkpoornima
Communicator

Hi all,

please verify the code below ...after running this code ,i got the search query in the search app

as source="c:\tasmanager\taskmanager_log"| Transaction TaskAction startswith=START endswith="Succeeded"

but i want is the query should have the source which has the path name with double slash

source="c:\tasmanager\taskmanager_log"| Transaction TaskAction startswith=START endswith="Succeeded"


list1
| metadata type=sources $index$

             <param name="settingToCreate">list1</param>
                                   <param name="searchFieldsToDisplay">
          <list>
            <param name="label">source</param>
            <param name="value">source</param>
          </list>
          <list>
            <param name="label">totalCount</param>
            <param name="labelFormat">number</param>
          </list>
        </param>

              <module name="HiddenSearch">
                <param name="search"></param>
     <param name="search">
    source="$pub$"| transaction TaskBP startswith=START endswith=Succeeded
                </param>




        <module name="ConvertToIntention">
            <param name="settingToConvert">list1</param>
            <param name="intention">
              <param name="name">stringreplace</param>
              <param name="arg">

            <param name="pub">
              <param name="value">$target$</param> 

                </param>             
              </param>
              </param>
Tags (1)
0 Karma

sowings
Splunk Employee
Splunk Employee

First off, this has nothing to do with SearchLinkLister, so your post title is misleading.

Since you're dealing with Windows paths, you'll want to escape the backslashes in the path elements in order to get the right string. Since that source string is coming from the search which defines the pulldown, you'll have to perform that transformation within that populating search, so that the values are passed correctly.

This answer will help you transform the source field correctly.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...