<?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 expand events that contain multivalue fields into separate events with unique field value pairs? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-events-that-contain-multivalue-fields-into/m-p/237926#M70691</link>
    <description>&lt;P&gt;The problem here is my actual events are as below&lt;BR /&gt;
1.event_id=1 name1=x name2=y name3=z responsetime1=4 responsetime2=5 responsetime3=6&lt;BR /&gt;
2.event_id=2 name1=a name2=b name3=c responsetime1=7 responsetime3=8 responsetime3=9&lt;/P&gt;

&lt;P&gt;I need something like this&lt;/P&gt;

&lt;P&gt;events&lt;BR /&gt;
1.event_id=1 name=x responsetime=4&lt;BR /&gt;
2.event_id=1 name=y responsetime=5&lt;BR /&gt;
3.event_id=1 name=z responsetime=6&lt;BR /&gt;
4.event_id=2 name=a responsetime=7&lt;BR /&gt;
5.event_id=2 name=x responsetime=8&lt;BR /&gt;
6.event_id=2 name=x responsetime=9&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:19:29 GMT</pubDate>
    <dc:creator>chvnc</dc:creator>
    <dc:date>2020-09-29T11:19:29Z</dc:date>
    <item>
      <title>How to expand events that contain multivalue fields into separate events with unique field value pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-events-that-contain-multivalue-fields-into/m-p/237924#M70689</link>
      <description>&lt;P&gt;The problem here is my actual events are as below&lt;BR /&gt;
1.event_id=1 name1=x name2=y name3=z responsetime1=4 responsetime2=5 responsetime3=6&lt;BR /&gt;
2.event_id=2 name1=a name2=b name3=c responsetime1=7 responsetime3=8 responsetime3=9&lt;/P&gt;

&lt;P&gt;I need something like this&lt;/P&gt;

&lt;P&gt;events&lt;BR /&gt;
1.event_id=1 name=x responsetime=4&lt;BR /&gt;
2.event_id=1 name=y responsetime=5&lt;BR /&gt;
3.event_id=1 name=z responsetime=6&lt;BR /&gt;
4.event_id=2 name=a responsetime=7&lt;BR /&gt;
5.event_id=2 name=b responsetime=8&lt;BR /&gt;
6.event_id=2 name=c responsetime=9&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:19:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-events-that-contain-multivalue-fields-into/m-p/237924#M70689</guid>
      <dc:creator>chvnc</dc:creator>
      <dc:date>2020-09-29T11:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand events that contain multivalue fields into separate events with unique field value pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-events-that-contain-multivalue-fields-into/m-p/237925#M70690</link>
      <description>&lt;P&gt;See if this works&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search 
| rex field=x max_match=0 "event_id=(?&amp;lt;event_id&amp;gt;\d+)" 
| rex field=x max_match=0 "name\d=(?&amp;lt;name&amp;gt;\w+)" 
| rex field=x max_match=0 "responsetime\d=(?&amp;lt;responsetime&amp;gt;\d+)" 
| eval z=mvzip(name, responsetime) 
| mvexpand z 
| rex field=z "(?&amp;lt;name&amp;gt;[^,]+),(?&amp;lt;responsetime&amp;gt;.*)" 
| streamstats count as event_id 
| table event_id name responsetime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Oct 2016 20:09:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-events-that-contain-multivalue-fields-into/m-p/237925#M70690</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-06T20:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand events that contain multivalue fields into separate events with unique field value pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-events-that-contain-multivalue-fields-into/m-p/237926#M70691</link>
      <description>&lt;P&gt;The problem here is my actual events are as below&lt;BR /&gt;
1.event_id=1 name1=x name2=y name3=z responsetime1=4 responsetime2=5 responsetime3=6&lt;BR /&gt;
2.event_id=2 name1=a name2=b name3=c responsetime1=7 responsetime3=8 responsetime3=9&lt;/P&gt;

&lt;P&gt;I need something like this&lt;/P&gt;

&lt;P&gt;events&lt;BR /&gt;
1.event_id=1 name=x responsetime=4&lt;BR /&gt;
2.event_id=1 name=y responsetime=5&lt;BR /&gt;
3.event_id=1 name=z responsetime=6&lt;BR /&gt;
4.event_id=2 name=a responsetime=7&lt;BR /&gt;
5.event_id=2 name=x responsetime=8&lt;BR /&gt;
6.event_id=2 name=x responsetime=9&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:19:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-events-that-contain-multivalue-fields-into/m-p/237926#M70691</guid>
      <dc:creator>chvnc</dc:creator>
      <dc:date>2020-09-29T11:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand events that contain multivalue fields into separate events with unique field value pairs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-events-that-contain-multivalue-fields-into/m-p/237927#M70692</link>
      <description>&lt;P&gt;Try updated ans&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 20:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-events-that-contain-multivalue-fields-into/m-p/237927#M70692</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-06T20:30:37Z</dc:date>
    </item>
  </channel>
</rss>

