<?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: Is it possible to change the table fields being sent with the sendemail command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348272#M166567</link>
    <description>&lt;P&gt;I've also tried this, but it removes the field so there is nothing to pass to the &lt;CODE&gt;sendmail&lt;/CODE&gt; command.  Thanks for trying!&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2017 17:56:59 GMT</pubDate>
    <dc:creator>andrewtrobec</dc:creator>
    <dc:date>2017-08-04T17:56:59Z</dc:date>
    <item>
      <title>Is it possible to change the table fields being sent with the sendemail command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348266#M166561</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm trying to find a way to use search result fields to address an e-mail, but remove those fields in the inline table in the body of the e-mail.&lt;/P&gt;

&lt;P&gt;Here is an example of the search results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Field_1, Field_2, Contact
Value_F1_1, Value_F2_2, contact@domain.com
Value_F1_2, Value_F2_3, contact@domain.com
Value_F1_3, Value_F2_2, contact@domain.com
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The send e-mail command I am using needs the Contact field to determine who to send the e-mail to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... |sendemail to=$result.Contact$ subject=subject sendresults=true format=table
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can imagine, the inline table in the e-mail contains the Contact field as well.  What I'd like to know is whether there is some way to remove the field from the inline table sent in the e-mail.&lt;/P&gt;

&lt;P&gt;Thank you and best regards,&lt;/P&gt;

&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 13:23:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348266#M166561</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2017-08-04T13:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change the table fields being sent with the sendemail command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348267#M166562</link>
      <description>&lt;P&gt;try this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | fields Contact |sendemail to=$result.Contact$ subject=subject sendresults=true format=table
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Aug 2017 14:29:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348267#M166562</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-08-04T14:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change the table fields being sent with the sendemail command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348268#M166563</link>
      <description>&lt;P&gt;Thanks for the reply.  This suggestion does the opposite of what I'm looking for: it sends an e-mail to the address and the e-mail content is just the contact column.  I'd like to send an e-mail to the address, but have the inline table contain everything but the contact field.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 14:37:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348268#M166563</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2017-08-04T14:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change the table fields being sent with the sendemail command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348269#M166564</link>
      <description>&lt;P&gt;... | fields - Contact |sendemail to=$result.Contact$ subject=subject sendresults=true format=table&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 15:39:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348269#M166564</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-08-04T15:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change the table fields being sent with the sendemail command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348270#M166565</link>
      <description>&lt;P&gt;@andrewtrobec, what is the query that fetches the results above? Also how many rows do you expect in results?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 16:40:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348270#M166565</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-04T16:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change the table fields being sent with the sendemail command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348271#M166566</link>
      <description>&lt;P&gt;I have an index that has those values already, so it would be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index | table Field_1 Field_2 Contact
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are filters in place that will make sure that &lt;CODE&gt;Contact&lt;/CODE&gt; will be the same for every event.  There will be between 2 and 25/30 results.  I want to be able to send an e-mail to &lt;CODE&gt;Contact&lt;/CODE&gt;, but configure the body so that the Contact field doesn't appear.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 17:49:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348271#M166566</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2017-08-04T17:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change the table fields being sent with the sendemail command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348272#M166567</link>
      <description>&lt;P&gt;I've also tried this, but it removes the field so there is nothing to pass to the &lt;CODE&gt;sendmail&lt;/CODE&gt; command.  Thanks for trying!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 17:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/348272#M166567</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2017-08-04T17:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change the table fields being sent with the sendemail command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/658107#M227328</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You might have got the result i am replying so that it can help others&amp;nbsp;&lt;/P&gt;&lt;P&gt;as you are using sendemail command and you need Contact field do the following&lt;/P&gt;&lt;PRE&gt;...|rename Contact as _Contact |sendemail to=$result._Contact$ subject=subject sendresults=true format=table&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;while sending mail splunk will ignore _Contatct field as it has underscore(_)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Happy Splunking&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Sep 2023 11:13:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-the-table-fields-being-sent-with-the/m-p/658107#M227328</guid>
      <dc:creator>Rohit_K</dc:creator>
      <dc:date>2023-09-20T11:13:04Z</dc:date>
    </item>
  </channel>
</rss>

