<?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 question involving breaking out multiple multivalue fields into events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/question-involving-breaking-out-multiple-multivalue-fields-into/m-p/319363#M95486</link>
    <description>&lt;P&gt;I'm having issues trying to break out individual events that are combined into multi-value fields&lt;/P&gt;

&lt;P&gt;When I do a table on my fields I get this:  one time entry then multiple values for name, entity, type and serverity.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time           name                    entity           type                          severity
3/2/2018 11:28  High Load              CaseService      BUSINESS_TRANSACTION           CRITICAL
                Exceptions per Minute   Mainframe       APPLICATION_COMPONENT         CRITICAL
                High Response Time    /app/Quoting      BUSINESS_TRANSACTION           CRITICAL
                High Load              /app/Quoting     BUSINESS_TRANSACTION           WARNING
                High Response Time    RetrieveWorkItem  BUSINESS_TRANSACTION        CRITICAL
                High Load              Online             BUSINESS_TRANSACTION          WARNING
                Server Time          thing.do           APPLICATION_DIAGNOSTIC_DATA WARNING
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I want is each line/group of name, entity, type and severity to be an event with the same _time. Is this possible?&lt;/P&gt;</description>
    <pubDate>Mon, 05 Mar 2018 18:31:29 GMT</pubDate>
    <dc:creator>kmaron</dc:creator>
    <dc:date>2018-03-05T18:31:29Z</dc:date>
    <item>
      <title>question involving breaking out multiple multivalue fields into events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/question-involving-breaking-out-multiple-multivalue-fields-into/m-p/319363#M95486</link>
      <description>&lt;P&gt;I'm having issues trying to break out individual events that are combined into multi-value fields&lt;/P&gt;

&lt;P&gt;When I do a table on my fields I get this:  one time entry then multiple values for name, entity, type and serverity.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time           name                    entity           type                          severity
3/2/2018 11:28  High Load              CaseService      BUSINESS_TRANSACTION           CRITICAL
                Exceptions per Minute   Mainframe       APPLICATION_COMPONENT         CRITICAL
                High Response Time    /app/Quoting      BUSINESS_TRANSACTION           CRITICAL
                High Load              /app/Quoting     BUSINESS_TRANSACTION           WARNING
                High Response Time    RetrieveWorkItem  BUSINESS_TRANSACTION        CRITICAL
                High Load              Online             BUSINESS_TRANSACTION          WARNING
                Server Time          thing.do           APPLICATION_DIAGNOSTIC_DATA WARNING
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I want is each line/group of name, entity, type and severity to be an event with the same _time. Is this possible?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 18:31:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/question-involving-breaking-out-multiple-multivalue-fields-into/m-p/319363#M95486</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2018-03-05T18:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: question involving breaking out multiple multivalue fields into events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/question-involving-breaking-out-multiple-multivalue-fields-into/m-p/319364#M95487</link>
      <description>&lt;P&gt;Can you share the search that got you these results?&lt;BR /&gt;
Have you tried &lt;CODE&gt;mvexpand&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 19:32:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/question-involving-breaking-out-multiple-multivalue-fields-into/m-p/319364#M95487</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-03-05T19:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: question involving breaking out multiple multivalue fields into events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/question-involving-breaking-out-multiple-multivalue-fields-into/m-p/319365#M95488</link>
      <description>&lt;P&gt;I can only seem to mvexpand one field.  so if I mvexpand Name I can get one event for each Name but then the full list of entity, type and severity all exist for every name.&lt;/P&gt;

&lt;P&gt;here's my search:&lt;BR /&gt;
    index=appd source=healthrule_violations application_name="PROD" &lt;BR /&gt;
    | spath healthrule_violations{}.name&lt;BR /&gt;
    | rename healthrule_violations{}.name AS name&lt;BR /&gt;
    | spath healthrule_violations{}.affectedEntityDefinition.name&lt;BR /&gt;
    | rename healthrule_violations{}.affectedEntityDefinition.name AS entity&lt;BR /&gt;
    | spath healthrule_violations{}.affectedEntityDefinition.entityType&lt;BR /&gt;
    | rename healthrule_violations{}.affectedEntityDefinition.entityType as type&lt;BR /&gt;
    | spath healthrule_violations{}.severity&lt;BR /&gt;
    | rename healthrule_violations{}.severity as severity&lt;BR /&gt;
    | table _time description name entity type severity&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:14:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/question-involving-breaking-out-multiple-multivalue-fields-into/m-p/319365#M95488</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2020-09-29T18:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: question involving breaking out multiple multivalue fields into events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/question-involving-breaking-out-multiple-multivalue-fields-into/m-p/319366#M95489</link>
      <description>&lt;P&gt;Try this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval zipped= mvzip(mvzip(mvzip(name,entity,"!!!!!entity="),type,"!!!!!type="),severity,"!!!!!severity=")
| mvexpand zipped
| fields _time zipped
| mvexpand zipped
| rex field=zipped "^(?&amp;lt;name&amp;gt;.*)!!!!!entity=(?&amp;lt;entity&amp;gt;.*)!!!!!type=(?&amp;lt;type&amp;gt;.*)!!!!!severity=(?&amp;lt;severity&amp;gt;.*)$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The "!!!!!" delimiter is my own favorite, since it almost never appears in real data.  Using commas or semicolons or dashes might accidentally split a field.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 22:21:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/question-involving-breaking-out-multiple-multivalue-fields-into/m-p/319366#M95489</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-03-07T22:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: question involving breaking out multiple multivalue fields into events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/question-involving-breaking-out-multiple-multivalue-fields-into/m-p/319367#M95490</link>
      <description>&lt;P&gt;That worked beautifully!  You just made y day!  Thank you!!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 13:37:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/question-involving-breaking-out-multiple-multivalue-fields-into/m-p/319367#M95490</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2018-03-08T13:37:28Z</dc:date>
    </item>
  </channel>
</rss>

