<?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 edit the table format in my email alert so that each item starts a new line? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-the-table-format-in-my-email-alert-so-that-each-item/m-p/365218#M107707</link>
    <description>&lt;P&gt;I have not, but it is correct in the Splunk WebUI also as PDF attachment, just in the HTML email body Splunk seems to screw it up.&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2017 16:37:39 GMT</pubDate>
    <dc:creator>omuelle1</dc:creator>
    <dc:date>2017-05-05T16:37:39Z</dc:date>
    <item>
      <title>How to edit the table format in my email alert so that each item starts a new line?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-the-table-format-in-my-email-alert-so-that-each-item/m-p/365216#M107705</link>
      <description>&lt;P&gt;Hi Splunkers and Happy Friday&lt;/P&gt;

&lt;P&gt;I am trying to put together an email that looks something like this:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2887i86C27B706BE69F60/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;However when I have several ITEMs for an Invoice the QTYs and other fields do not go to a new line like in the my original search in Splunk but look like this:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2888i90F07FFA1B9F0D4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The underlying search is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| fields - _raw, _time 
| stats values(ITEM) values(ITEM_DESCRIPTION) list(SHIPPED_QTY_BTLS) list(ORDER_QTY_BTLS)  list(PACKQTY)  list(SHIPPED_DATE) by INVOICE_NUMBER,SALESPERSON,EMAIL,SHIP_TO 
| rename "values(ITEM)" AS "ITEM" "values(ITEM_DESCRIPTION)" AS "ITEM_DESCRIPTION" "list(SHIPPED_QTY_BTLS)" AS "SHIPPED_QTY_BTLS" "list(ORDER_QTY_BTLS)" AS "ORDER_QTY_BTLS" "list(PACKQTY)" AS "PACKQTY" "list(SHIPPED_DATE)" as "SHIPPED_DATE"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would anybody know how to get this to have any value in the their own row and not right after each other?&lt;/P&gt;

&lt;P&gt;Thank you very much guys,&lt;/P&gt;

&lt;P&gt;Oliver&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 15:50:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-the-table-format-in-my-email-alert-so-that-each-item/m-p/365216#M107705</guid>
      <dc:creator>omuelle1</dc:creator>
      <dc:date>2017-05-05T15:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the table format in my email alert so that each item starts a new line?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-the-table-format-in-my-email-alert-so-that-each-item/m-p/365217#M107706</link>
      <description>&lt;P&gt;Have you tried looking into mvexpand and mvsplit?&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/SearchReference/Mvexpand"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.3/SearchReference/Mvexpand&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 16:24:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-the-table-format-in-my-email-alert-so-that-each-item/m-p/365217#M107706</guid>
      <dc:creator>ckunath</dc:creator>
      <dc:date>2017-05-05T16:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the table format in my email alert so that each item starts a new line?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-the-table-format-in-my-email-alert-so-that-each-item/m-p/365218#M107707</link>
      <description>&lt;P&gt;I have not, but it is correct in the Splunk WebUI also as PDF attachment, just in the HTML email body Splunk seems to screw it up.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 16:37:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-the-table-format-in-my-email-alert-so-that-each-item/m-p/365218#M107707</guid>
      <dc:creator>omuelle1</dc:creator>
      <dc:date>2017-05-05T16:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the table format in my email alert so that each item starts a new line?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-the-table-format-in-my-email-alert-so-that-each-item/m-p/365219#M107708</link>
      <description>&lt;P&gt;We figured it out, we are using regex for the field and put in spaces, which breaks everything up just like we need it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats list(size) as "size" list(ship_qty_btls) AS "ship_qty_btls"  list(ord_qty_btls) AS "ord_qty_btls"  list(ShortQty) as "short_qty" list(item_description)  as "ITEM_DESCRIPTION" delim=":" by invoice,ship_to, email, Cust#
| rex mode=sed field=ITEM_DESCRIPTION "s/:/\n/g" | rex mode=sed field=ord_qty_btls "s/:/\n/g" | rex mode=sed field=size "s/:/\n/g" |  rex mode=sed field=ship_qty_btls "s/:/\n/g" |  rex mode=sed field=short_qty "s/:/\n/g" 
| rex mode=sed field=ITEM_DESCRIPTION "s/ /_/g" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 May 2017 13:13:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-the-table-format-in-my-email-alert-so-that-each-item/m-p/365219#M107708</guid>
      <dc:creator>omuelle1</dc:creator>
      <dc:date>2017-05-11T13:13:26Z</dc:date>
    </item>
  </channel>
</rss>

