<?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 rows without mvexpand command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411487#M118701</link>
    <description>&lt;P&gt;I am trying ways to avoid join function. I am combining two different sourcetype for all time duration. &lt;/P&gt;

&lt;P&gt;since i am using all time i cannot use Join due to slow performance and limation in numbers of rows to join. &lt;/P&gt;

&lt;P&gt;index=test sourcetype=a or sourcetype=b latest=now&lt;BR /&gt;
now lets assume a1 is the field in sourcetype a which is equal to b1 in the sourcetype b and both the sourcetype has over a 2 lakh rows&lt;BR /&gt;
my next step is doing a colaese function to link this&lt;BR /&gt;
| eval test=coalesce(a1,b1)&lt;BR /&gt;
now to make things fast i am doing a stats &lt;BR /&gt;
| stats list(a2),list(a3),list(a4),list(a5),list(b1),list(b2) by test&lt;BR /&gt;
now my stats will reduce  values to 1 lakh, also i am using lust command because some fields in sourcetype a will be tagged to multiple fields in sourcetype6&lt;BR /&gt;
somethg like &lt;BR /&gt;
a1=b1----&amp;gt; (b1.1,b1.2,b1.3)&lt;BR /&gt;
now here since i am having more than 1 lakh rows my mvexpand failes&lt;BR /&gt;
i am more concerned about multi value columns with multi value fields&lt;BR /&gt;
in other words how to extract indivual rows from a multi value columns multi value  row kind of event of a stats command without using mvindex command&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2019 15:34:16 GMT</pubDate>
    <dc:creator>vkrishnachand</dc:creator>
    <dc:date>2019-07-31T15:34:16Z</dc:date>
    <item>
      <title>How to expand rows without mvexpand command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411483#M118697</link>
      <description>&lt;P&gt;I am basically dealing with huge set of records where i am ending in mvexpand memory limit error. I want to extract data from below table without using mvexpand command. &lt;BR /&gt;
if you notice the below table i want to extract  as separate fields for each column. you can omit sno , because that is just to show that this is a multi value multi column table. This is the output of a stats command. &lt;/P&gt;

&lt;P&gt;kindly assist &lt;/P&gt;

&lt;P&gt;sno tasknumber  projectidentifier   taskstate&lt;BR /&gt;
1   tas123           Null                    open&lt;BR /&gt;
    tas456           Null                   closed&lt;BR /&gt;
    tas789           Null                    incomplete&lt;BR /&gt;
    ritm234          Null                     null&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 10:33:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411483#M118697</guid>
      <dc:creator>vkrishnachand</dc:creator>
      <dc:date>2019-07-31T10:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand rows without mvexpand command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411484#M118698</link>
      <description>&lt;P&gt;@vkrishnachand &lt;/P&gt;

&lt;P&gt;Can you please share your existing search and sample events?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 11:01:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411484#M118698</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-07-31T11:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand rows without mvexpand command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411485#M118699</link>
      <description>&lt;P&gt;this is a kind of restricted data where i cannot share but i can share you a part of logic which i have used &lt;/P&gt;

&lt;P&gt;i have used the below spl to extract set of 8 fields from a statistics table shared in teh case . of course in the case i have given only four fields. &lt;BR /&gt;
| eval zipped = mvzip(tasknumber , taskstate, "###") &lt;BR /&gt;
 | eval zipped = mvzip(zipped, taskassignmentgroup, "###")&lt;BR /&gt;
  | eval zipped = mvzip(zipped, taskcreateddate, "###")&lt;BR /&gt;
  | eval zipped = mvzip(zipped, taskassigned, "###")&lt;BR /&gt;
    | eval zipped = mvzip(zipped, taskreassignmentcount, "###")&lt;BR /&gt;
        | eval zipped = mvzip(zipped, tasklastupdated, "###")&lt;BR /&gt;
        | eval zipped = mvzip(zipped, taskdescription, "###")&lt;BR /&gt;
        | eval zipped= mvzip(zipped,projectidentifier, "###")&lt;BR /&gt;
         | eval zipped= mvzip(zipped,requestservice, "###")&lt;BR /&gt;
 | mvexpand zipped&lt;BR /&gt;
 | makemv delim="###" zipped&lt;BR /&gt;
 | eval finaltasknumber = mvindex(zipped, 0)&lt;BR /&gt;
 | eval finaltaskstate = mvindex(zipped, 1)&lt;BR /&gt;
 | eval finaltaskassignmentgroup = mvindex(zipped, 2)&lt;BR /&gt;
 | eval finaltaskcreateddate = mvindex(zipped, 3)&lt;BR /&gt;
  | eval finaltaskassigned = mvindex(zipped, 4)&lt;BR /&gt;
   | eval finaltaskreassignmentcount = mvindex(zipped, 5)&lt;BR /&gt;
   | eval finaltasklastupdated =   mvindex(zipped, 6)&lt;BR /&gt;
    | eval finaltaskdescription = mvindex(zipped, 7)&lt;BR /&gt;
    | eval finalrequestservice =  mvindex(requestservice, 0)&lt;BR /&gt;
       | eval finalprojectidentifier =  mvindex(projectidentifier, 0)&lt;/P&gt;

&lt;P&gt;I have to go through this step especially for rows which have multi values. All i need is just skip mvexpand command and go for a different logic , because of bulk data. &lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 12:20:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411485#M118699</guid>
      <dc:creator>vkrishnachand</dc:creator>
      <dc:date>2019-07-31T12:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand rows without mvexpand command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411486#M118700</link>
      <description>&lt;P&gt;What exactly are you trying to accomplish?  There may be another solution that does not require such a large multi-value field.&lt;BR /&gt;
Sample data may help.  Anonymize it, if necessary.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 12:51:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411486#M118700</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-07-31T12:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand rows without mvexpand command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411487#M118701</link>
      <description>&lt;P&gt;I am trying ways to avoid join function. I am combining two different sourcetype for all time duration. &lt;/P&gt;

&lt;P&gt;since i am using all time i cannot use Join due to slow performance and limation in numbers of rows to join. &lt;/P&gt;

&lt;P&gt;index=test sourcetype=a or sourcetype=b latest=now&lt;BR /&gt;
now lets assume a1 is the field in sourcetype a which is equal to b1 in the sourcetype b and both the sourcetype has over a 2 lakh rows&lt;BR /&gt;
my next step is doing a colaese function to link this&lt;BR /&gt;
| eval test=coalesce(a1,b1)&lt;BR /&gt;
now to make things fast i am doing a stats &lt;BR /&gt;
| stats list(a2),list(a3),list(a4),list(a5),list(b1),list(b2) by test&lt;BR /&gt;
now my stats will reduce  values to 1 lakh, also i am using lust command because some fields in sourcetype a will be tagged to multiple fields in sourcetype6&lt;BR /&gt;
somethg like &lt;BR /&gt;
a1=b1----&amp;gt; (b1.1,b1.2,b1.3)&lt;BR /&gt;
now here since i am having more than 1 lakh rows my mvexpand failes&lt;BR /&gt;
i am more concerned about multi value columns with multi value fields&lt;BR /&gt;
in other words how to extract indivual rows from a multi value columns multi value  row kind of event of a stats command without using mvindex command&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 15:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411487#M118701</guid>
      <dc:creator>vkrishnachand</dc:creator>
      <dc:date>2019-07-31T15:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand rows without mvexpand command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411488#M118702</link>
      <description>&lt;P&gt;Your explanation is too confusing.  Try putting together a few examples of data rows, with sensitive information removed, along with your desired output.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 16:31:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411488#M118702</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2019-07-31T16:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand rows without mvexpand command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411489#M118703</link>
      <description>&lt;P&gt;Avoiding &lt;CODE&gt;join&lt;/CODE&gt; is good.  Using All Time is bad.  Are you sure it's necessary?&lt;/P&gt;

&lt;P&gt;Your comment well explains why you chose the approach you did, but it's still not clear what the end goal is.  What is to be learned from the final results?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 18:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-rows-without-mvexpand-command/m-p/411489#M118703</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-07-31T18:37:20Z</dc:date>
    </item>
  </channel>
</rss>

