<?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: Search for a path the might not exist in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746702#M241697</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;the path you search is :&lt;/P&gt;&lt;P&gt;resourceSpans{}.scopeSpans{}.spans{}.attributes{}.value.stringValue&lt;/P&gt;&lt;P&gt;but in your json data example, the path to stringValue is :&lt;/P&gt;&lt;P&gt;resourceSpans{}.resource{}.attributes{}.value.stringValue&lt;/P&gt;&lt;P&gt;May be it help.&lt;/P&gt;</description>
    <pubDate>Wed, 21 May 2025 23:45:57 GMT</pubDate>
    <dc:creator>myitlab42000</dc:creator>
    <dc:date>2025-05-21T23:45:57Z</dc:date>
    <item>
      <title>Search for a path the might not exist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746683#M241692</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following data (Below).&lt;/P&gt;&lt;P&gt;I have a situation where I want to search for "*" on a search and have it return all the data. resourceSpans{}.scopeSpans{}.spans{}.attributes{}.value.stringValue = "*"&lt;/P&gt;&lt;P&gt;However, this works for 99.9 % of my data, but the line below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This path is not there. So when I run the command below, I get no results. However, I am looking for all data with the *. But as it's not there, it is excluding it. Is there any way I can still get the data back?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robertlynch2020_0-1747844809711.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39078iDE5956A9EC3D541A/image-size/large?v=v2&amp;amp;px=999" role="button" title="robertlynch2020_0-1747844809711.png" alt="robertlynch2020_0-1747844809711.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"resourceSpans":[{"resource":{"attributes":[{"key":"process.pid","value":{"intValue":"600146"}},{"key":"service.instance.id","value":{"stringValue":"003nhhk3"}},{"key":"service.name","value":{"stringValue":"LAUNCHERMXMARKETRISK_MPC"}},{"key":"service.namespace","value":{"stringValue":"LAUNCHER"}},{"key":"telemetry.sdk.language","value":{"stringValue":"java"}},{"key":"telemetry.sdk.name","value":{"stringValue":"opentelemetry"}},{"key":"telemetry.sdk.version","value":{"stringValue":"1.34.0"}},{"key":"mx.env","value":{"stringValue":"dell945srv:13003"}}]},"scopeSpans":[{"scope":{"name":"mx-traces-api","version":"1.0.0"},"spans":[{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"cbf88ed07b403b48","parentSpanId":"3cfc7d85786b676b","name":"createSubmission","kind":1,"startTimeUnixNano":"1747152946314481406","endTimeUnixNano":"1747152946314775297","status":{}},{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"8ff7fabcab4b12d0","parentSpanId":"3cfc7d85786b676b","name":"createSubmission","kind":1,"startTimeUnixNano":"1747152946353054099","endTimeUnixNano":"1747152946353187644","status":{}},{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"4b14e49df1e1ffd8","parentSpanId":"3cfc7d85786b676b","name":"createSubmission","kind":1,"startTimeUnixNano":"1747152946474942393","endTimeUnixNano":"1747152946475042609","status":{}},{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"169b89bf118931d8","parentSpanId":"3cfc7d85786b676b","name":"createSubmission","kind":1,"startTimeUnixNano":"1747152946488875310","endTimeUnixNano":"1747152946488933120","status":{}}]}]}]}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 16:30:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746683#M241692</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2025-05-21T16:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Search for a path the might not exist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746684#M241693</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/141978"&gt;@robertlynch2020&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I might be mis-understanding something here, but why are you searching for&amp;nbsp;&lt;SPAN&gt;resourceSpans{}.scopeSpans{}.spans{}.attributes{}.value.stringValue = "*" if you want to include data which does not have it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you search for a field with value * then the field must exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It might help if we could understand your usecase here if you're able to share a little more info, please?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 16:34:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746684#M241693</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-21T16:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Search for a path the might not exist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746687#M241694</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for looking into this - cheers.&lt;/P&gt;&lt;P&gt;The issue is that I have filters (drop-downs) that I am using to zoom into data.&lt;/P&gt;&lt;P&gt;So when I pick a jobID it works very well for other tables&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robertlynch2020_0-1747845754382.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39079i507471FD0415698E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="robertlynch2020_0-1747845754382.png" alt="robertlynch2020_0-1747845754382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For example. The table below would have a filter&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robertlynch2020_1-1747845841085.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39080i90648551F9F1FB3B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="robertlynch2020_1-1747845841085.png" alt="robertlynch2020_1-1747845841085.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The code would look like this. So this is perfect for "&lt;STRONG&gt;CONSO_ABAQ | 31/03/2016 | 22&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;However, if I put in * from the drop-down. I won't get the original line as it does not have&amp;nbsp;resourceSpans{}.scopeSpans{}.spans{}.attributes{}.value.stringValue - however, I am looking to extract other data from that line to complete the table.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;host="MARKET_RISK_PDT_V2" index="murex_logs" sourcetype="Market_Risk_DT" 
| search "resourceSpans{}.resource.attributes{}.value.stringValue"="*" 
| search resourceSpans{}.scopeSpans{}.spans{}.attributes{}.value.stringValue = "CONSO_ABAQ | 31/03/2016 | 22" 
| spath resourceSpans{}.scopeSpans{}.spans{} output=scopeSpans 
| stats count by scopeSpans 
| spath input=scopeSpans 
| rename startTimeUnixNano as start 
| rename endTimeUnixNano as end 
| eval _time=start/pow(10,9) 
| eval duration = end -start 
| eval duration= duration/1000000 
| eval duration = round(duration,0) 
| eval parentSpanId =if(parentSpanId="" ,"0", $parentSpanId$) 
| rename name as SPAN_TYPE 
| search traceId = * 
| search spanId="*" OR parentSpanId="*" 
| stats avg(duration) as Average count(duration) AS count, stdev(duration) AS stdev, median(duration) AS median, exactperc75(duration) AS perc75, exactperc95(duration) AS perc95, exactperc99.5(duration) AS perc99.5, min(duration) AS min, max(duration) AS max by SPAN_TYPE 
| sort - Average&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 16:50:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746687#M241694</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2025-05-21T16:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search for a path the might not exist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746696#M241695</link>
      <description>&lt;P&gt;I see, okay - in that case I think the below might work for you? This works by setting the fieldName into the value so you dont need something=$token$ you just do $token$ as it already contains something= within it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="livehybrid_0-1747868968866.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39082i9F2E63FDF743C66C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="livehybrid_0-1747868968866.png" alt="livehybrid_0-1747868968866.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;All:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="livehybrid_1-1747868974080.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39083iAD2A9FE3ED2E18A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="livehybrid_1-1747868974080.png" alt="livehybrid_1-1747868974080.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1"&amp;gt;
  &amp;lt;label&amp;gt;Demo&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="testToken" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Test. Token&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="&amp;amp;quot;resourceSpans{}.resource.attributes{}.value.stringValue&amp;amp;quot;=&amp;amp;quot;CONSO_ABAQ | 31/03/2016 | 23&amp;amp;quot;"&amp;gt;CONSO_ABAQ | 31/03/2016 | 23 (Static)&amp;lt;/choice&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;obj&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;option&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| makeresults | eval obj="CONSO_ABAQ | 31/03/2016 | 22"
| eval option="\"resourceSpans{}.resource.attributes{}.value.stringValue\"=\"".obj."\""&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;|makeresults | eval _raw=json_set("{}","resourceSpans{}.resource.name.stringValue","Testing")
|append [makeresults | eval _raw=json_set("{}","resourceSpans{}.resource.attributes{}.value.stringValue","CONSO_ABAQ | 31/03/2016 | 22")] |spath|search $testToken$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 23:09:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746696#M241695</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-21T23:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Search for a path the might not exist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746702#M241697</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;the path you search is :&lt;/P&gt;&lt;P&gt;resourceSpans{}.scopeSpans{}.spans{}.attributes{}.value.stringValue&lt;/P&gt;&lt;P&gt;but in your json data example, the path to stringValue is :&lt;/P&gt;&lt;P&gt;resourceSpans{}.resource{}.attributes{}.value.stringValue&lt;/P&gt;&lt;P&gt;May be it help.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 23:45:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746702#M241697</guid>
      <dc:creator>myitlab42000</dc:creator>
      <dc:date>2025-05-21T23:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Search for a path the might not exist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746742#M241705</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I think we are close, and thanks for your efforts.&lt;/P&gt;&lt;P&gt;A couple of points&lt;/P&gt;&lt;P&gt;This is only a problem for&amp;nbsp;| search &lt;STRONG&gt;resourceSpans{}.scopeSpans{}.spans{}.attributes{}.value.stringValue = "$Token_Mr_jobId$&lt;/STRONG&gt;". This is the token that I am looking at.&lt;/P&gt;&lt;P&gt;Token_Mr_jobId - Can be a dynamic list, so more than the 2 I gave in the example.&lt;/P&gt;&lt;P&gt;So the question is, how to pass the dynamic selection?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="dropdown" token="Token_Mr_jobId"&amp;gt;
      &amp;lt;label&amp;gt;JobId&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;mr_jobId&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;mr_jobId&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;host="$Host_Token$" index="murex_logs" sourcetype="Market_Risk_DT" "**mr_strategy**" 
    "resourceSpans{}.resource.attributes{}.value.stringValue"="$TOKEN_Service_Namespace$" 
| fields - resourceSpans{}.* 
| spath path=resourceSpans{} 
| mvexpand resourceSpans{} 
| spath input=resourceSpans{} path=scopeSpans{} 
| fields - resourceSpans{} 
| mvexpand scopeSpans{} 
| spath input=scopeSpans{} path=spans{} 
| fields - scopeSpans{} 
| mvexpand spans{} 
| where match('spans{}', "mr_batchId") 
| spath input=spans{} path=attributes{} output=attributes 
| foreach mr_batchId  mr_jobId 
    [ eval &amp;amp;lt;&amp;amp;lt;FIELD&amp;amp;gt;&amp;amp;gt; = mvappend(&amp;amp;lt;&amp;amp;lt;FIELD&amp;amp;gt;&amp;amp;gt;, mvmap(attributes, if(spath(attributes, "key") != "&amp;amp;lt;&amp;amp;lt;FIELD&amp;amp;gt;&amp;amp;gt;", null(), spath(attributes, "value")))),
        &amp;amp;lt;&amp;amp;lt;FIELD&amp;amp;gt;&amp;amp;gt; = coalesce(spath(&amp;amp;lt;&amp;amp;lt;FIELD&amp;amp;gt;&amp;amp;gt;, "doubleValue"), spath(&amp;amp;lt;&amp;amp;lt;FIELD&amp;amp;gt;&amp;amp;gt;, "stringValue"))] 
| dedup _time mr_batchId
    ``` the above is key logic.  If there is any doubt, you can also use
| dedup _time mr_batchId mr_batch_compute_cpu_time mr_batch_compute_time
``` 
| table _time mr_batchId mr_batch_compute_cpu_time mr_batch_compute_time mr_batch_load_cpu_time mr_batch_load_time mr_strategy mr_jobId 
| table mr_jobId 
| dedup mr_jobId&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$time_token.latest$&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="$Token_Mr_jobId$ != &amp;amp;quot;*&amp;amp;quot;"&amp;gt;
          &amp;lt;set token="TOKEN_Strategy"&amp;gt;ON&amp;lt;/set&amp;gt;
          &amp;lt;set token="TOKEN_TRACEID"&amp;gt;*&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition match="$Token_Mr_jobId$ = &amp;amp;quot;*&amp;amp;quot;"&amp;gt;
          &amp;lt;unset token="TOKEN_Strategy"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;set token="TOKEN_TRACEID"&amp;gt;*&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;set token="TOKEN_TRACEID"&amp;gt;*&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
      &amp;lt;choice value="*"&amp;gt;*&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Also, to add - Here are 2 data sets. 1 with&amp;nbsp;resourceSpans{}.scopeSpans{}.spans{}.attributes{}.value.stringValue and one with out.&lt;/P&gt;&lt;P&gt;With | search resourceSpans{}.scopeSpans{}.spans{}.attributes{}.value.stringValue = "CONSO_ABAQ | 31/03/2016 | 21"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"resourceSpans":[{"resource":{"attributes":[{"key":"telemetry.sdk.language","value":{"stringValue":"cpp"}},{"key":"service.name","value":{"stringValue":"MXMARKETRISK.ENGINE.MX"}},{"key":"service.namespace","value":{"stringValue":"MXMARKETRISK.SERVICE"}},{"key":"process.pid","value":{"intValue":"604252"}},{"key":"service.instance.id","value":{"stringValue":"003nhhkz"}},{"key":"telemetry.sdk.name","value":{"stringValue":"opentelemetry"}},{"key":"telemetry.sdk.version","value":{"stringValue":"1.12.0"}},{"key":"mx.env","value":{"stringValue":"dell945srv:13003"}}]},"scopeSpans":[{"scope":{"name":"murex::observability_otel_backend::tracing","version":"v1"},"spans":[{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"0392a58e2dfaaa4c","parentSpanId":"ebce3b37999c2ea1","name":"scenario_reaction","kind":1,"startTimeUnixNano":"1747148775503846985","endTimeUnixNano":"1747148782361058175","attributes":[{"key":"market_risk_span","value":{"stringValue":"true"}}],"status":{}},{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"ebce3b37999c2ea1","parentSpanId":"825cbaedeb509365","name":"scenario_apply","kind":1,"startTimeUnixNano":"1747148775477950524","endTimeUnixNano":"1747148782362084106","attributes":[{"key":"market_risk_span","value":{"stringValue":"true"}},{"key":"mr_scenario","value":{"stringValue":"10"}}],"status":{}},{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"04307bd9c64e20e8","parentSpanId":"825cbaedeb509365","name":"structured_position_evaluation","kind":1,"startTimeUnixNano":"1747148782362177082","endTimeUnixNano":"1747148782379867824","attributes":[{"key":"market_risk_span","value":{"stringValue":"true"}},{"key":"mr_scenario","value":{"stringValue":"10"}}],"status":{}},{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"d2abbf63ac87acb4","parentSpanId":"825cbaedeb509365","name":"position_evaluation","kind":1,"startTimeUnixNano":"1747148782380422079","endTimeUnixNano":"1747148782509071609","attributes":[{"key":"market_risk_span","value":{"stringValue":"true"}},{"key":"mr_scenario","value":{"stringValue":"10"}}],"status":{}},{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"cc80374715a2e755","parentSpanId":"431a2a6341ac4120","name":"scenario_reaction","kind":1,"startTimeUnixNano":"1747148782510724546","endTimeUnixNano":"1747148782599301641","attributes":[{"key":"market_risk_span","value":{"stringValue":"true"}}],"status":{}},{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"431a2a6341ac4120","parentSpanId":"825cbaedeb509365","name":"scenario_restore","kind":1,"startTimeUnixNano":"1747148782509167483","endTimeUnixNano":"1747148782605479850","attributes":[{"key":"market_risk_span","value":{"stringValue":"true"}},{"key":"mr_scenario","value":{"stringValue":"10"}}],"status":{}},{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"825cbaedeb509365","parentSpanId":"8e2a92d0a40f203b","name":"scenario_all_apply","kind":1,"startTimeUnixNano":"1747148711449995255","endTimeUnixNano":"1747148782623591981","attributes":[{"key":"market_risk_span","value":{"stringValue":"true"}},{"key":"mr_scenario_nb","value":{"stringValue":"10"}}],"status":{}},{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"8e2a92d0a40f203b","parentSpanId":"8e5190bbe86bdaff","name":"fullreval_task","kind":1,"startTimeUnixNano":"1747148638253233246","endTimeUnixNano":"1747148782639890403","attributes":[{"key":"market_risk_span","value":{"stringValue":"true"}},{"key":"mr_batchId","value":{"stringValue":"40"}},{"key":"mr_batchType","value":{"stringValue":"Full Revaluation"}},{"key":"mr_bucketName","value":{"stringValue":""}},{"key":"mr_jobDomain","value":{"stringValue":"Market Risk"}},{"key":"mr_jobId","value":{"stringValue":"CONSO_ABAQ | 31/03/2016 | 21"}},{"key":"mr_strategy","value":{"stringValue":"typo_Callable Bond"}},{"key":"mr_uuid","value":{"stringValue":"7dcdf03d-9dd0-42f6-b0f4-e2508283ff44"}},{"key":"mrb_batch_affinity","value":{"stringValue":"CONSO_ABAQ_run_Batch|CONSO_ABAQ|2016/03/31|21_FullReval0_00040"}},{"key":"mr_batch_compute_cpu_time","value":{"doubleValue":71.000477}},{"key":"mr_batch_compute_time","value":{"doubleValue":71.351}},{"key":"mr_batch_load_cpu_time","value":{"doubleValue":61.569109000000005}},{"key":"mr_batch_load_time","value":{"doubleValue":71.597}},{"key":"mr_batch_status","value":{"stringValue":"WARNING"}},{"key":"mr_batch_total_cpu_time","value":{"doubleValue":133.924506}},{"key":"mr_batch_total_time","value":{"doubleValue":144.375}}],"status":{}}]}]}]}&lt;/LI-CODE&gt;&lt;P&gt;With | search resourceSpans{}.scopeSpans{}.spans{}.attributes{}.value.stringValue = * (But I understand your great idea, that we will just put in "|search *")&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"resourceSpans":[{"resource":{"attributes":[{"key":"process.pid","value":{"intValue":"600146"}},{"key":"service.instance.id","value":{"stringValue":"003nhhk3"}},{"key":"service.name","value":{"stringValue":"LAUNCHERMXMARKETRISK_MPC"}},{"key":"service.namespace","value":{"stringValue":"LAUNCHER"}},{"key":"telemetry.sdk.language","value":{"stringValue":"java"}},{"key":"telemetry.sdk.name","value":{"stringValue":"opentelemetry"}},{"key":"telemetry.sdk.version","value":{"stringValue":"1.34.0"}},{"key":"mx.env","value":{"stringValue":"dell945srv:13003"}}]},"scopeSpans":[{"scope":{"name":"mx-traces-api","version":"1.0.0"},"spans":[{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"cbf88ed07b403b48","parentSpanId":"3cfc7d85786b676b","name":"createSubmission","kind":1,"startTimeUnixNano":"1747152946314481406","endTimeUnixNano":"1747152946314775297","status":{}},{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"8ff7fabcab4b12d0","parentSpanId":"3cfc7d85786b676b","name":"createSubmission","kind":1,"startTimeUnixNano":"1747152946353054099","endTimeUnixNano":"1747152946353187644","status":{}},{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"4b14e49df1e1ffd8","parentSpanId":"3cfc7d85786b676b","name":"createSubmission","kind":1,"startTimeUnixNano":"1747152946474942393","endTimeUnixNano":"1747152946475042609","status":{}},{"traceId":"10731f4b1d19380ceb33ae33672dbd5f","spanId":"169b89bf118931d8","parentSpanId":"3cfc7d85786b676b","name":"createSubmission","kind":1,"startTimeUnixNano":"1747152946488875310","endTimeUnixNano":"1747152946488933120","status":{}}]}]}]}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 15:39:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746742#M241705</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2025-05-22T15:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Search for a path the might not exist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746747#M241706</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Yes - this is correct.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;resourceSpans{}.scopeSpans{}.spans{}.attributes{}.value.stringValue is the path that the token can change on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The screenshot below shows me using it and getting back 34 events.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robertlynch2020_0-1747928584317.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39090iDBBEFD920BF62F16/image-size/large?v=v2&amp;amp;px=999" role="button" title="robertlynch2020_0-1747928584317.png" alt="robertlynch2020_0-1747928584317.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I run it with =*, I get 225&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robertlynch2020_2-1747928696012.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39092i3AE8902F30264912/image-size/large?v=v2&amp;amp;px=999" role="button" title="robertlynch2020_2-1747928696012.png" alt="robertlynch2020_2-1747928696012.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run it without the filter, I get 294.&amp;nbsp; So the issue is when I put in * I want to get 294, as there are other parts to the data that I need to look at.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robertlynch2020_3-1747928727473.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39093i64763FFB35AB98AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="robertlynch2020_3-1747928727473.png" alt="robertlynch2020_3-1747928727473.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 15:48:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746747#M241706</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2025-05-22T15:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search for a path the might not exist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746832#M241721</link>
      <description>&lt;P&gt;Let me simplify your problem statement by eliminating JSON path from the equation. &amp;nbsp;The requirements are simply these:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In a dashboard, there is a dropdown input token, say &lt;U&gt;SomeToken&lt;/U&gt;.&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;SomeToken&lt;/U&gt; has a fixed, predefined entry with label "All".&lt;/LI&gt;&lt;LI&gt;The rest of choices for &lt;U&gt;SomeToken&lt;/U&gt; are populated by a search. &amp;nbsp;I will call this search &amp;lt;tokenSearch&amp;gt;.&lt;/LI&gt;&lt;LI&gt;Events in dashboard panel may or may not contain a field of interest named &lt;U&gt;SomeField&lt;/U&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;OL&gt;&lt;LI&gt;If the user selects "All" (predefined, fixed value), all events should be returned regardless of &lt;U&gt;SomeField&lt;/U&gt;.&lt;/LI&gt;&lt;LI&gt;If the user selects any other value populated by &amp;lt;tokenSearch&amp;gt;, only events with &lt;U&gt;SomeField&lt;/U&gt; = &lt;U&gt;SomeToken&lt;/U&gt; should be returned.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;(In your case, &lt;U&gt;SomeField&lt;/U&gt; is&amp;nbsp;&lt;FONT face="andale mono,times"&gt;resourceSpans{}.scopeSpans{}.spans{}.attributes{}.value.stringValue&lt;/FONT&gt;, and you call &lt;U&gt;SomeToken&lt;/U&gt; &lt;FONT face="andale mono,times"&gt;Token_Mr_jobId&lt;/FONT&gt;.)&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;already gives the solution: Do not return only&amp;nbsp;&lt;EM&gt;SomeFieldValue&lt;/EM&gt; in &amp;lt;tokenSearch&amp;gt; and use the value to populate both input label and input value. &amp;nbsp;Use a different strategy in &amp;lt;tokenSearch&amp;gt;, i.e., return SomeFieldValue as input label, and "SomeField=&lt;EM&gt;SomeFieldValue&lt;/EM&gt;" as input value.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;      &amp;lt;fieldForLabel&amp;gt;SomeFieldValue&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;SomeField=SomeFieldValue&amp;lt;/fieldForValue&amp;gt;​&lt;/LI-CODE&gt;&lt;P&gt;Then, in your panel search, do not use "SomeField = $SomeToken$". &amp;nbsp;Instead, simply insert $SomeToken$ as a search term.&lt;/P&gt;&lt;P&gt;One more suggestion: Do not use a pipe between your index search and the tokenized filter if &lt;EM&gt;SomeField&lt;/EM&gt; is already extracted at search time. &amp;nbsp;This unnecessarily burdens Splunk.&lt;/P&gt;&lt;P&gt;In the following demo dashboard, &lt;U&gt;SomeField&lt;/U&gt; is substituted with &lt;FONT face="courier new,courier"&gt;thread_name&lt;/FONT&gt; from index _internal; &lt;FONT face="courier new,courier"&gt;thread_name_tok&lt;/FONT&gt; is &lt;U&gt;SomeToken&lt;/U&gt;. &amp;nbsp;The key here is &amp;lt;tokenSearch&amp;gt;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal component=*
| stats values(thread_name) as token_label
| mvexpand token_label
| eval token_value = "thread_name=" . token_label&lt;/LI-CODE&gt;&lt;P&gt;This search differs from yours in one critical step: the last eval sets token_value to a search term involving field name &lt;FONT face="courier new,courier"&gt;thread_name&lt;/FONT&gt;, not a simple value of this field. &amp;nbsp;Then, &lt;FONT face="andale mono,times"&gt;token_label&lt;/FONT&gt; and &lt;FONT face="andale mono,times"&gt;token_value&lt;/FONT&gt; are used to populate input label and value, respectively. &amp;nbsp;In this example, I set "All" label to a zero-length character as value, which is equivalent to * in search command but more economical.&lt;/P&gt;&lt;P&gt;Full demo dashboard as follows. &amp;nbsp;Play with it and fit it into your dataset.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1" theme="light"&amp;gt;
  &amp;lt;label&amp;gt;Search for a path the might not exist&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746683#M241692&amp;lt;/description&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="thread_name_tok" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select thread_name&amp;lt;/label&amp;gt;
      &amp;lt;choice value=""&amp;gt;All events&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;token_label&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;token_value&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=_internal component=*
| stats values(thread_name) as token_label
| mvexpand token_label
| eval token_value = "thread_name=" . token_label&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Token value of your selection: &amp;amp;gt;$thread_name_tok$&amp;amp;lt;&amp;lt;/title&amp;gt;
      &amp;lt;event&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal component=* $thread_name_tok$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/event&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 08:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/746832#M241721</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2025-05-23T08:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search for a path the might not exist</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/747098#M241754</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks very much for this great answer. This worked very well.&lt;/P&gt;&lt;P&gt;CHeers&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 08:39:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-a-path-the-might-not-exist/m-p/747098#M241754</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2025-05-28T08:39:16Z</dc:date>
    </item>
  </channel>
</rss>

