<?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: How to Splunk query to split values of multiple dictionary within a list in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701955#M238069</link>
    <description>&lt;P&gt;What do you get from this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath unit_test_name_failed{} output=unit_test_name_failed
| mvexpand unit_test_name_failed
| table unit_test_name_failed&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 15 Oct 2024 14:02:21 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-10-15T14:02:21Z</dc:date>
    <item>
      <title>How to Splunk query to split values of multiple dictionary within a list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701944#M238064</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Query is to retrieve failed test case matching with exception message. Out of 6 failed test case, one test as exception and rest of them are skipped with message 'Test was skipped'.&lt;BR /&gt;&lt;BR /&gt;Below data of one event.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
  "suite_build_id": "20241015.12",
  "suite_build_name": "pipeline_name",
  "unit_test_name_failed": [
    {
      "message": "Failed to save the shipping address. An unexpected error occurred. Please try again later or contact HP Support for assistance.",
      "test_rail_name": "test_printer_order_placement_magento",
      "test_result": "fail"
    },
    {
      "message": "Test was skipped",
      "test_rail_name": "test_updation_of_access_token",
    },
    {
      "message": "Test was skipped",
      "test_name": "test_printer_and_user_details",
      "test_rail_name": "test_printer_and_user_details",
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Now, I want to display result to show test_rail_name and exception_message which matches exception.&lt;BR /&gt;&lt;BR /&gt;Below is the query that I tried.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;index="eqt-e2e" suite_build_name="pipeline-name" suite_build_number="20241015.12"
| mvexpand unit_test_name_failed{}.message
| mvexpand unit_test_name_failed{}.test_rail_name
| search unit_test_name_failed{}.message="Failed to save the shipping address. An unexpected error occurred. Please try again later or contact HP Support for assistance."
| table suite_build_number, suite_build_start_time, unit_test_name_failed{}.test_rail_name, unit_test_name_failed{}.message
| rename suite_build_number AS "Pipeline Number", suite_build_start_time AS "Pipeline Date", unit_test_name_failed{}.test_rail_name AS "Test Name", unit_test_name_failed{}.message AS "Exception Message"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the result, it should have been 1 event, but retrieve 6 events.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinodkumarK_0-1728997994812.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33102i5660466623458348/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinodkumarK_0-1728997994812.png" alt="vinodkumarK_0-1728997994812.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I understand, mvexpand works only on one multivalue fields, and here I have 2 multivalue fields.&lt;BR /&gt;&lt;BR /&gt;Let me know if there is any solution on retrieving the data.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 13:29:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701944#M238064</guid>
      <dc:creator>vinodkumarK</dc:creator>
      <dc:date>2024-10-15T13:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Splunk query to split values of multiple dictionary within a list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701947#M238066</link>
      <description>&lt;P&gt;This is how data is shown If I just display the list.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinodkumarK_0-1728999185529.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33103i39CA36AC7B8C5228/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinodkumarK_0-1728999185529.png" alt="vinodkumarK_0-1728999185529.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 13:33:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701947#M238066</guid>
      <dc:creator>vinodkumarK</dc:creator>
      <dc:date>2024-10-15T13:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Splunk query to split values of multiple dictionary within a list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701948#M238067</link>
      <description>&lt;P&gt;mvexpand on message creates 3 events from one. mvexpand on test_rail_name creates 2 events from each of these - hence 6 events.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath unit_test_name_failed{} output=unit_test_name_failed
| mvexpand unit_test_name_failed
| spath input=unit_test_name_failed
| where message="Failed to save the shipping address. An unexpected error occurred. Please try again later or contact HP Support for assistance."&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 13:44:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701948#M238067</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-15T13:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Splunk query to split values of multiple dictionary within a list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701950#M238068</link>
      <description>&lt;P&gt;Thanks for the response. Appreciate it.&lt;BR /&gt;&lt;BR /&gt;I tried your query,&amp;nbsp; and it didn't match my result.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Below is the result of your query.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinodkumarK_0-1729000113107.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33104i5A363AA9764EAAEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinodkumarK_0-1729000113107.png" alt="vinodkumarK_0-1729000113107.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to display a row, with&amp;nbsp;test_rail_name as '&lt;SPAN&gt;test_printer_order_placement_magento' and message as 'Failed to save the shipping address. An unexpected error occurred. Please try again later or contact HP Support for assistance.'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 13:49:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701950#M238068</guid>
      <dc:creator>vinodkumarK</dc:creator>
      <dc:date>2024-10-15T13:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Splunk query to split values of multiple dictionary within a list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701955#M238069</link>
      <description>&lt;P&gt;What do you get from this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath unit_test_name_failed{} output=unit_test_name_failed
| mvexpand unit_test_name_failed
| table unit_test_name_failed&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Oct 2024 14:02:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701955#M238069</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-15T14:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Splunk query to split values of multiple dictionary within a list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701959#M238070</link>
      <description>&lt;P&gt;Here.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinodkumarK_0-1729001006779.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33107i80D21CCDE777C12F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinodkumarK_0-1729001006779.png" alt="vinodkumarK_0-1729001006779.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 14:03:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701959#M238070</guid>
      <dc:creator>vinodkumarK</dc:creator>
      <dc:date>2024-10-15T14:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Splunk query to split values of multiple dictionary within a list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701960#M238071</link>
      <description>&lt;LI-CODE lang="markup"&gt;| spath unit_test_name_failed{} output=unit_test_name_failed
| mvexpand unit_test_name_failed
| spath input=unit_test_name_failed
| where message="Failed to save the shipping address. An unexpected error occurred. Please try again later or contact HP Support for assistance."
| table message test_rail_name&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Oct 2024 14:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Splunk-query-to-split-values-of-multiple-dictionary/m-p/701960#M238071</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-15T14:06:39Z</dc:date>
    </item>
  </channel>
</rss>

