<?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: Get the list of unique combination in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Get-the-list-of-unique-combination/m-p/562060#M195472</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237124"&gt;@samdjava&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To extract value from raw event use below search.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YOUR_SEARCH
| rex field=_raw "actionKey=(?&amp;lt;actionKey&amp;gt;[^,]+),\sconfidenceScore=(?&amp;lt;confidenceScore&amp;gt;[^,]+),\smodelName=(?&amp;lt;modelName&amp;gt;[^,]+),\sprogramName=(?&amp;lt;programName&amp;gt;[^}]+)" max_match=0
| eval t=mvzip(mvzip(mvzip(actionKey,confidenceScore),modelName),programName)
| mvexpand t
| eval actionKey = mvindex(split(t,","),0) ,confidenceScore= mvindex(split(t,","),1),modelName= mvindex(split(t,","),2),programName= mvindex(split(t,","),3) | fields - t&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Sample Search :&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval _raw="Request{userId='6699249',channelWise='SOCIAL', cid='1627958668279-9a93682610ee1c700c7e5d4ad01e8c76207274', sid=b8d2a070-f404-11eb-9cf4-5d474ec9ecbc, mlrecopred=[{actionKey=search, confidenceScore=83.46, modelName=model_forrest, programName=sapbased}, {actionKey=shipping_and_delivery, confidenceScore=82.94, modelName=model_forrest, programName=sapbased}, {actionKey=inventory_check, confidenceScore=65.21, modelName=model_forrest, programName=sapbased}, {actionKey=search, confidenceScore=63.46, modelName=event_handler, programName=sapbased}, {actionKey=shipping_and_delivery, confidenceScore=55.45, modelName=event_handler, programName=sapbased}], interactionId=0d6b031fdddba957, uniqueId='ed064f15d49c70ea7f540f7fe2ed2b7083e6eef8760f645f05d6600ad1208c3d'}"
| rex field=_raw "actionKey=(?&amp;lt;actionKey&amp;gt;[^,]+),\sconfidenceScore=(?&amp;lt;confidenceScore&amp;gt;[^,]+),\smodelName=(?&amp;lt;modelName&amp;gt;[^,]+),\sprogramName=(?&amp;lt;programName&amp;gt;[^}]+)" max_match=0
| eval t=mvzip(mvzip(mvzip(actionKey,confidenceScore),modelName),programName)
| mvexpand t
| eval actionKey = mvindex(split(t,","),0) ,confidenceScore= mvindex(split(t,","),1),modelName= mvindex(split(t,","),2),programName= mvindex(split(t,","),3) | fields - t
| de&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Unique event you can use below search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| dedup  actionKey, modelName, programName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use below search for filter event&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where confidenceScore &amp;gt; 70.00&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
    <pubDate>Wed, 04 Aug 2021 11:25:37 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2021-08-04T11:25:37Z</dc:date>
    <item>
      <title>Get the list of unique combination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-list-of-unique-combination/m-p/562056#M195469</link>
      <description>&lt;P&gt;I would like to find&lt;/P&gt;&lt;P&gt;1. all unique combination of actionKey, modelName, programName&lt;/P&gt;&lt;P&gt;2. only consider data if they have a confidence score &amp;gt; 70.00&lt;/P&gt;&lt;P&gt;Splunk Raw Log -&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-08-04 07:35:39,069 INFO [boundedElastic-87] [traceId="a4d01423048aa5de"] Request{userId='6699249',channelWise='SOCIAL', cid='1627958668279-9a93682610ee1c700c7e5d4ad01e8c76207274', sid=b8d2a070-f404-11eb-9cf4-5d474ec9ecbc, mlrecopred=[{actionKey=search, confidenceScore=83.46, modelName=model_forrest, programName=sapbased}, {actionKey=shipping_and_delivery, confidenceScore=82.94, modelName=model_forrest, programName=sapbased}, {actionKey=inventory_check, confidenceScore=65.21, modelName=model_forrest, programName=sapbased}, {actionKey=search, confidenceScore=63.46, modelName=event_handler, programName=sapbased}, {actionKey=shipping_and_delivery, confidenceScore=55.45, modelName=event_handler, programName=sapbased}], interactionId=0d6b031fdddba957, uniqueId='ed064f15d49c70ea7f540f7fe2ed2b7083e6eef8760f645f05d6600ad1208c3d'}

 &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Aug 2021 11:08:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-list-of-unique-combination/m-p/562056#M195469</guid>
      <dc:creator>samdjava</dc:creator>
      <dc:date>2021-08-04T11:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get the list of unique combination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-list-of-unique-combination/m-p/562060#M195472</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237124"&gt;@samdjava&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To extract value from raw event use below search.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YOUR_SEARCH
| rex field=_raw "actionKey=(?&amp;lt;actionKey&amp;gt;[^,]+),\sconfidenceScore=(?&amp;lt;confidenceScore&amp;gt;[^,]+),\smodelName=(?&amp;lt;modelName&amp;gt;[^,]+),\sprogramName=(?&amp;lt;programName&amp;gt;[^}]+)" max_match=0
| eval t=mvzip(mvzip(mvzip(actionKey,confidenceScore),modelName),programName)
| mvexpand t
| eval actionKey = mvindex(split(t,","),0) ,confidenceScore= mvindex(split(t,","),1),modelName= mvindex(split(t,","),2),programName= mvindex(split(t,","),3) | fields - t&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Sample Search :&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval _raw="Request{userId='6699249',channelWise='SOCIAL', cid='1627958668279-9a93682610ee1c700c7e5d4ad01e8c76207274', sid=b8d2a070-f404-11eb-9cf4-5d474ec9ecbc, mlrecopred=[{actionKey=search, confidenceScore=83.46, modelName=model_forrest, programName=sapbased}, {actionKey=shipping_and_delivery, confidenceScore=82.94, modelName=model_forrest, programName=sapbased}, {actionKey=inventory_check, confidenceScore=65.21, modelName=model_forrest, programName=sapbased}, {actionKey=search, confidenceScore=63.46, modelName=event_handler, programName=sapbased}, {actionKey=shipping_and_delivery, confidenceScore=55.45, modelName=event_handler, programName=sapbased}], interactionId=0d6b031fdddba957, uniqueId='ed064f15d49c70ea7f540f7fe2ed2b7083e6eef8760f645f05d6600ad1208c3d'}"
| rex field=_raw "actionKey=(?&amp;lt;actionKey&amp;gt;[^,]+),\sconfidenceScore=(?&amp;lt;confidenceScore&amp;gt;[^,]+),\smodelName=(?&amp;lt;modelName&amp;gt;[^,]+),\sprogramName=(?&amp;lt;programName&amp;gt;[^}]+)" max_match=0
| eval t=mvzip(mvzip(mvzip(actionKey,confidenceScore),modelName),programName)
| mvexpand t
| eval actionKey = mvindex(split(t,","),0) ,confidenceScore= mvindex(split(t,","),1),modelName= mvindex(split(t,","),2),programName= mvindex(split(t,","),3) | fields - t
| de&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Unique event you can use below search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| dedup  actionKey, modelName, programName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use below search for filter event&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where confidenceScore &amp;gt; 70.00&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 11:25:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-list-of-unique-combination/m-p/562060#M195472</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-08-04T11:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get the list of unique combination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-list-of-unique-combination/m-p/562061#M195473</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="2021-08-04 07:35:39,069 INFO [boundedElastic-87] [traceId=\"a4d01423048aa5de\"] Request{userId='6699249',channelWise='SOCIAL', cid='1627958668279-9a93682610ee1c700c7e5d4ad01e8c76207274', sid=b8d2a070-f404-11eb-9cf4-5d474ec9ecbc, mlrecopred=[{actionKey=search, confidenceScore=83.46, modelName=model_forrest, programName=sapbased}, {actionKey=shipping_and_delivery, confidenceScore=82.94, modelName=model_forrest, programName=sapbased}, {actionKey=inventory_check, confidenceScore=65.21, modelName=model_forrest, programName=sapbased}, {actionKey=search, confidenceScore=63.46, modelName=event_handler, programName=sapbased}, {actionKey=shipping_and_delivery, confidenceScore=55.45, modelName=event_handler, programName=sapbased}], interactionId=0d6b031fdddba957, uniqueId='ed064f15d49c70ea7f540f7fe2ed2b7083e6eef8760f645f05d6600ad1208c3d'}"


| rex "mlrecopred=\[(?&amp;lt;mlrecopred&amp;gt;[^\]]+)"
| rex max_match=0 field=mlrecopred "\{(?&amp;lt;keyvalues&amp;gt;[^\}]+)\}"
| mvexpand keyvalues
| eval raw=_raw, _raw=keyvalues
| extract pairdelim="," kvdelim="="
| where confidenceScore &amp;gt; 70
| dedup actionKey modelName programName
| table actionKey modelName programName&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Aug 2021 11:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-list-of-unique-combination/m-p/562061#M195473</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-08-04T11:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get the list of unique combination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-list-of-unique-combination/m-p/562068#M195476</link>
      <description>&lt;P&gt;Thanks for helping out&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 12:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-list-of-unique-combination/m-p/562068#M195476</guid>
      <dc:creator>samdjava</dc:creator>
      <dc:date>2021-08-04T12:28:58Z</dc:date>
    </item>
  </channel>
</rss>

