<?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 Help getting search that includes LOOKUP that are merged into one row for each result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-getting-search-that-includes-LOOKUP-that-are-merged-into/m-p/515094#M144597</link>
    <description>&lt;P&gt;I am trying to get the following results for date, email and answer with the other data into separate rows:&lt;/P&gt;&lt;P&gt;Results I am getting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2020-08-19 at 7.00.13 PM.png" style="width: 774px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10391iCC005CD241679E74/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-08-19 at 7.00.13 PM.png" alt="Screen Shot 2020-08-19 at 7.00.13 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Results I need to see:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-08-19 at 7.00.31 PM.png" style="width: 775px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10392iC414D0ED6FAB0B4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-08-19 at 7.00.31 PM.png" alt="Screen Shot 2020-08-19 at 7.00.31 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Search Query:&lt;/P&gt;&lt;P&gt;index=someindex&amp;nbsp;&lt;BR /&gt;| eval status=case(like(_raw, "%NO%"), "NO", like(_raw, "%YES%"), "YES")&lt;BR /&gt;| lookup fall2020OnCampusStudents email OUTPUT class, name, ID, className, classNumber, college&lt;BR /&gt;| search class!=""&lt;BR /&gt;| table Date, name, email, ID, status, class, className, classNumber, college&lt;BR /&gt;| sort college, email, class&lt;BR /&gt;| rename email AS "Email", status AS "Answer", class AS "Classes", className as "Class Name", classNumber as "Class Number", college as "College"&lt;/P&gt;&lt;P&gt;I have tried using mvexpand, but it will only take the first line of each field. I am still trying to understand other techniques, but still learning.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Aug 2020 02:01:52 GMT</pubDate>
    <dc:creator>CSULeigh</dc:creator>
    <dc:date>2020-08-20T02:01:52Z</dc:date>
    <item>
      <title>Help getting search that includes LOOKUP that are merged into one row for each result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-getting-search-that-includes-LOOKUP-that-are-merged-into/m-p/515094#M144597</link>
      <description>&lt;P&gt;I am trying to get the following results for date, email and answer with the other data into separate rows:&lt;/P&gt;&lt;P&gt;Results I am getting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2020-08-19 at 7.00.13 PM.png" style="width: 774px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10391iCC005CD241679E74/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-08-19 at 7.00.13 PM.png" alt="Screen Shot 2020-08-19 at 7.00.13 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Results I need to see:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-08-19 at 7.00.31 PM.png" style="width: 775px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10392iC414D0ED6FAB0B4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-08-19 at 7.00.31 PM.png" alt="Screen Shot 2020-08-19 at 7.00.31 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Search Query:&lt;/P&gt;&lt;P&gt;index=someindex&amp;nbsp;&lt;BR /&gt;| eval status=case(like(_raw, "%NO%"), "NO", like(_raw, "%YES%"), "YES")&lt;BR /&gt;| lookup fall2020OnCampusStudents email OUTPUT class, name, ID, className, classNumber, college&lt;BR /&gt;| search class!=""&lt;BR /&gt;| table Date, name, email, ID, status, class, className, classNumber, college&lt;BR /&gt;| sort college, email, class&lt;BR /&gt;| rename email AS "Email", status AS "Answer", class AS "Classes", className as "Class Name", classNumber as "Class Number", college as "College"&lt;/P&gt;&lt;P&gt;I have tried using mvexpand, but it will only take the first line of each field. I am still trying to understand other techniques, but still learning.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 02:01:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-getting-search-that-includes-LOOKUP-that-are-merged-into/m-p/515094#M144597</guid>
      <dc:creator>CSULeigh</dc:creator>
      <dc:date>2020-08-20T02:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting search that includes LOOKUP that are merged into one row for each result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-getting-search-that-includes-LOOKUP-that-are-merged-into/m-p/515296#M144665</link>
      <description>&lt;P&gt;Solved the issue with Splunks Help:&lt;/P&gt;&lt;DIV&gt;| inputlookup fall2020OnCampusStudents.csv&lt;BR /&gt;| join email&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[search index=someindex | eval status=case(like(_raw, "%NO%"), "NO", like(_raw, "%YES%"), "YES")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| table Date, status, email]&lt;BR /&gt;&lt;SPAN&gt;| table Date, name, email, ID, status, class, className, classNumber, college&lt;/SPAN&gt;&lt;BR /&gt;| sort college, email&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I know the join is expensive, but this will run once a day.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 19:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-getting-search-that-includes-LOOKUP-that-are-merged-into/m-p/515296#M144665</guid>
      <dc:creator>CSULeigh</dc:creator>
      <dc:date>2020-08-20T19:46:42Z</dc:date>
    </item>
  </channel>
</rss>

