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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...