<?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: Splunk Search Where Key is dynamic in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/611138#M212504</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;I am not getting right output with this.&lt;/P&gt;&lt;PRE&gt;{\"rate-parity-group\":{\"CN\":{\"avail\":11,\"price\":11}}}&lt;/PRE&gt;&lt;P&gt;For this record my outcome should look like below&lt;/P&gt;&lt;P&gt;CN&amp;nbsp; 22 .&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each group I need to add both avail and price count.&amp;nbsp; To give you more insight .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sanjana_0-1661771417962.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21238i4E4088782B3AE82E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sanjana_0-1661771417962.png" alt="Sanjana_0-1661771417962.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sanjana_1-1661771440948.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21239iA06BD6AE286CABDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sanjana_1-1661771440948.png" alt="Sanjana_1-1661771440948.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is hoe I have nested json fields. After Rate-parity-group level calculation, I am supposed to find percentage as well. To find percentage I have to use "total" object mentioned in scree.&lt;/P&gt;&lt;P&gt;Also I have a small doubt, you have used below as spath&lt;/P&gt;&lt;PRE&gt;| fields _raw
| spath rate-parity-group
| spath input=rate-parity-group&lt;/PRE&gt;&lt;P&gt;This is how I used but output is not as expected&lt;/P&gt;&lt;P&gt;index="index1"&amp;nbsp;&lt;BR /&gt;| multikv noheader=t&lt;BR /&gt;| fields _raw&lt;BR /&gt;| spath content.kIndexKey_EventMessage{1}.rate-parity-group&lt;BR /&gt;| spath input=content.kIndexKey_EventMessage{1}.rate-parity-group&lt;BR /&gt;| foreach *.avail&lt;BR /&gt;[| eval group="&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;"&lt;BR /&gt;| eval {group}='&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;']&lt;BR /&gt;| fields - *.avail *.price group rate-parity-group _time&lt;BR /&gt;| untable _raw group avail&lt;BR /&gt;| stats sum(avail) as avail by group&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2022 11:15:21 GMT</pubDate>
    <dc:creator>Sanjana</dc:creator>
    <dc:date>2022-08-29T11:15:21Z</dc:date>
    <item>
      <title>Splunk Search-Where is key dynamic?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/611108#M212496</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;I have data like below. I need to frame a query such that I can calculate number of desync for each rate-parity-group.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sanjana_1-1661759597575.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21232i167BE528C6415E8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sanjana_1-1661759597575.png" alt="Sanjana_1-1661759597575.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;rate-parity-group&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;CN&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;avail&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:11&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;price&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:11&lt;/SPAN&gt;&lt;SPAN&gt;}}}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;rate-parity-group&lt;/SPAN&gt;&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;{"&lt;SPAN class=""&gt;CK&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;{"&lt;SPAN class=""&gt;avail&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:18&lt;/SPAN&gt;,"&lt;SPAN class=""&gt;price&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:0&lt;/SPAN&gt;},"&lt;SPAN class=""&gt;CL&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;{"&lt;SPAN class=""&gt;avail&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:36&lt;/SPAN&gt;,"&lt;SPAN class=""&gt;price&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:0&lt;/SPAN&gt;},"&lt;SPAN class=""&gt;CM&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;{"&lt;SPAN class=""&gt;avail&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:18&lt;/SPAN&gt;,"&lt;SPAN class=""&gt;price&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:0&lt;/SPAN&gt;}}},&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;rate-parity-group&lt;/SPAN&gt;&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;{"&lt;SPAN class=""&gt;CL&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;{"&lt;SPAN class=""&gt;avail&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:18&lt;/SPAN&gt;,"&lt;SPAN class=""&gt;price&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:0&lt;/SPAN&gt;},"&lt;SPAN class=""&gt;CM&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;{"&lt;SPAN class=""&gt;avail&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:36&lt;/SPAN&gt;,"&lt;SPAN class=""&gt;price&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:0&lt;/SPAN&gt;}}}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Expected outcome&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;rate-parity-group&amp;nbsp; total-desync&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 54(36+18)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CM&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 54&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CK&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Since CK,CM,CL all these rate-parity-group is dynamic so I m facing problem.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could someone help me to get the desync count at rate-parity-group.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sample data attached in screenshot.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks in Advance&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 17:53:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/611108#M212496</guid>
      <dc:creator>Sanjana</dc:creator>
      <dc:date>2022-08-29T17:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search Where Key is dynamic</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/611114#M212498</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="{\"rate-parity-group\":{\"CN\":{\"avail\":11,\"price\":11}}}
{\"rate-parity-group\":{\"CK\":{\"avail\":18,\"price\":0},\"CL\":{\"avail\":36,\"price\":0},\"CM\":{\"avail\":18,\"price\":0}}}
{\"rate-parity-group\":{\"CL\":{\"avail\":18,\"price\":0},\"CM\":{\"avail\":36,\"price\":0}}}"
| multikv noheader=t
| fields _raw
| spath rate-parity-group
| spath input=rate-parity-group
| foreach *.avail
    [| eval group="&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;"
    | eval {group}='&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;']
| fields - *.avail *.price group rate-parity-group _time
| untable _raw group avail
| stats sum(avail) as avail by group&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 Aug 2022 08:21:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/611114#M212498</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-29T08:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search Where Key is dynamic</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/611138#M212504</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;I am not getting right output with this.&lt;/P&gt;&lt;PRE&gt;{\"rate-parity-group\":{\"CN\":{\"avail\":11,\"price\":11}}}&lt;/PRE&gt;&lt;P&gt;For this record my outcome should look like below&lt;/P&gt;&lt;P&gt;CN&amp;nbsp; 22 .&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each group I need to add both avail and price count.&amp;nbsp; To give you more insight .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sanjana_0-1661771417962.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21238i4E4088782B3AE82E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sanjana_0-1661771417962.png" alt="Sanjana_0-1661771417962.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sanjana_1-1661771440948.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21239iA06BD6AE286CABDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sanjana_1-1661771440948.png" alt="Sanjana_1-1661771440948.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is hoe I have nested json fields. After Rate-parity-group level calculation, I am supposed to find percentage as well. To find percentage I have to use "total" object mentioned in scree.&lt;/P&gt;&lt;P&gt;Also I have a small doubt, you have used below as spath&lt;/P&gt;&lt;PRE&gt;| fields _raw
| spath rate-parity-group
| spath input=rate-parity-group&lt;/PRE&gt;&lt;P&gt;This is how I used but output is not as expected&lt;/P&gt;&lt;P&gt;index="index1"&amp;nbsp;&lt;BR /&gt;| multikv noheader=t&lt;BR /&gt;| fields _raw&lt;BR /&gt;| spath content.kIndexKey_EventMessage{1}.rate-parity-group&lt;BR /&gt;| spath input=content.kIndexKey_EventMessage{1}.rate-parity-group&lt;BR /&gt;| foreach *.avail&lt;BR /&gt;[| eval group="&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;"&lt;BR /&gt;| eval {group}='&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;']&lt;BR /&gt;| fields - *.avail *.price group rate-parity-group _time&lt;BR /&gt;| untable _raw group avail&lt;BR /&gt;| stats sum(avail) as avail by group&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 11:15:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/611138#M212504</guid>
      <dc:creator>Sanjana</dc:creator>
      <dc:date>2022-08-29T11:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search Where Key is dynamic</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/611145#M212506</link>
      <description>&lt;P&gt;Hey Again,&lt;/P&gt;&lt;P&gt;Expected output is avail+price for each group .And then calculate percentage with total from data&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 12:59:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/611145#M212506</guid>
      <dc:creator>Sanjana</dc:creator>
      <dc:date>2022-08-29T12:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search Where Key is dynamic</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/611171#M212510</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="index1" 
| fields _raw
| spath content.kIndexKey_EventMessage{1}.rate-parity-group
| spath input=content.kIndexKey_EventMessage{1}.rate-parity-group
| foreach *.avail
    [| eval "&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;"='&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;']
| foreach *.price
    [| eval "&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;"='&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;'+'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;']
| fields - *.avail *.price group rate-parity-group _time
| untable _raw group avail
| stats sum(avail) as avail by group&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 Aug 2022 16:47:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/611171#M212510</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-29T16:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search Where Key is dynamic</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/612379#M212914</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the solution. IT worked perfectly fine.&lt;/P&gt;&lt;P&gt;But If I am having duplicated logs ,in that case facing trouble.&lt;/P&gt;&lt;P&gt;Duplicate record should not get added.&lt;/P&gt;&lt;P&gt;2022/09/01 21:18:22.199000 [ABC:XXX-XXXX:DESYNC-20I-ST8F-I2] "rate-parity-group":{ "CJ":{ "avail":4, "price":0 }, "CK":{ "avail":8, "price":0 }, "CL":{ "avail":8, "price":0 }, "CM":{ "avail":12, "price":0 } } }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2022/09/01 21:18:22.199000 [ABC:XXX-XXXX:DESYNC-20I-ST8F-I2] "rate-parity-group":{ "CJ":{ "avail":4, "price":0 }, "CK":{ "avail":8, "price":0 }, "CL":{ "avail":8, "price":0 }, "CM":{ "avail":12, "price":0 } } }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how should I handle it?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 09:11:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/612379#M212914</guid>
      <dc:creator>Sanjana</dc:creator>
      <dc:date>2022-09-08T09:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search Where Key is dynamic</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/612383#M212918</link>
      <description>&lt;P&gt;You should look at why you are getting duplicated records - are they expected e.g. for redundancy purposes, or has something been misconfigured somehow?&lt;/P&gt;&lt;P&gt;If you can't stop the records being duplicated at source, or at least before they are indexed, you could use dedup, although this might prove to be time-consuming&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fields _raw
| dedup _raw
...&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Sep 2022 09:46:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/612383#M212918</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-09-08T09:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search-Where is key dynamic?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/613173#M213100</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on another splunk query , looking some input from your side.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;have Logger lines as below:&lt;/P&gt;&lt;P&gt;job MONITOR-DESYNC-3-20I-ERNC: { "chain":"PR1", "nbProperties":1345, "propertyStartCount":1, "nbPropertyPerExecution":5, "propertyEndCount":6, "nbPropertyForCurrentExecution":5 }&lt;/P&gt;&lt;P&gt;job MONITOR-DESYNC-3-20I-ERNC: { "chain":"PR2", "nbProperties":1345, "propertyStartCount":6, "nbPropertyPerExecution":5, "propertyEndCount":11, "nbPropertyForCurrentExecution":5 }&lt;/P&gt;&lt;P&gt;------These lines continue till propertyEndCount = nbProperties but sometimes it does not get equal&amp;nbsp; and stops.&lt;/P&gt;&lt;P&gt;This job stopped at "propertyEndCount":1076 only&lt;/P&gt;&lt;P&gt;job MONITOR-DESYNC-3-6AQ-Q7Z: { "chain":"PR1", "nbProperties":1345, "propertyStartCount":1071, "nbPropertyPerExecution":5, "propertyEndCount":1076, "nbPropertyForCurrentExecution":5 }&lt;/P&gt;&lt;P&gt;SPlunk query to find if all hotels got covered&amp;nbsp; for each chain . In this case&lt;BR /&gt;Output Expected is:&lt;/P&gt;&lt;P&gt;only if&amp;nbsp;propertyEndCount &amp;lt; nbProperties then I need to get output as below&lt;/P&gt;&lt;P&gt;chain total-property&amp;nbsp; end-property&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PR1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1345&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1076&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PR2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1345&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1000&lt;/P&gt;&lt;P&gt;I have tried like below :&lt;/P&gt;&lt;P&gt;index="index1" "propertyEndCount" "MONITOR-DESYNC-3*"&lt;BR /&gt;| rex field=_raw "(?&amp;lt;json&amp;gt;\{.*\})"&lt;BR /&gt;| spath input=json output=nb_property "nbProperties"&lt;BR /&gt;| spath input=json output=nb_endproperty "propertyEndCount"&lt;BR /&gt;| spath input=json output=chain "chain"&lt;BR /&gt;| bucket _time span=day&lt;BR /&gt;| eval nb_end = max(nb_endproperty)&lt;BR /&gt;| search nb_end &amp;lt; nb_property | reverse&lt;BR /&gt;| stats latest(nb_property) as property_scheduled latest(nb_endproperty) as property_covered by chain&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but from this still I m getting record evenif&amp;nbsp;propertyEndCount &amp;gt; nbProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you please help me on this.&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 06:25:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-Where-is-key-dynamic/m-p/613173#M213100</guid>
      <dc:creator>Sanjana</dc:creator>
      <dc:date>2022-09-15T06:25:03Z</dc:date>
    </item>
  </channel>
</rss>

