<?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: Edit CSV file sent through sendemail command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Edit-CSV-file-sent-through-sendemail-command/m-p/678759#M232085</link>
    <description>&lt;P&gt;Came looking for an answer to this as well - seems there has been an idea for this for some time now ..&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://ideas.splunk.com/ideas/EID-I-717" target="_blank"&gt;https://ideas.splunk.com/ideas/EID-I-717&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 03:52:19 GMT</pubDate>
    <dc:creator>Esky73</dc:creator>
    <dc:date>2024-02-27T03:52:19Z</dc:date>
    <item>
      <title>Edit CSV file sent through sendemail command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-CSV-file-sent-through-sendemail-command/m-p/672288#M230296</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I am trying to send email using sendemail command with csv as an attachment . Email is getting sent successfully but file is getting named as "unknown-&amp;lt;date_time&amp;gt;". I want to rename this file. Please let me know how we are doing this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sendemail
      sendresults=true format=csv
      to=\"$email$\"
      graceful=false
      message="This is a test email"
      subject="Test Email Check"&lt;/LI-CODE&gt;&lt;P&gt;Also , message and subject is getting truncated. I am getting message body as "This" and Subject as "Test".&lt;BR /&gt;Please help me to know what is going wrong.&lt;BR /&gt;&lt;BR /&gt;Help on :&lt;BR /&gt;Renaming the csv file.&lt;BR /&gt;How to avoid message body and subject getting truncated.&lt;BR /&gt;&lt;BR /&gt;I really appreciate your help on this&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;PNV&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 11:18:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-CSV-file-sent-through-sendemail-command/m-p/672288#M230296</guid>
      <dc:creator>Poojitha</dc:creator>
      <dc:date>2023-12-19T11:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Edit CSV file sent through sendemail command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-CSV-file-sent-through-sendemail-command/m-p/673360#M230563</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;this should work as expected and documented. Only thing is what you have on $email$ and where you have set it? And where you are calling this partially SPL?&lt;/P&gt;&lt;P&gt;I suppose that this csv file prefix is fixed and you cannot change it?&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 14:12:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-CSV-file-sent-through-sendemail-command/m-p/673360#M230563</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-01-05T14:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Edit CSV file sent through sendemail command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-CSV-file-sent-through-sendemail-command/m-p/673362#M230564</link>
      <description>&lt;P&gt;First thing to verify would be to check your _internal logs for the sendemail.py activity and see whether it reports sending the email with the full subject (you won't see the message contents in the log) or truncated one. This way you'll know if it's something between Splunk and the sendemail.py script or is it something in sendemail.py/between it and your email server.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 14:17:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-CSV-file-sent-through-sendemail-command/m-p/673362#M230564</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-05T14:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Edit CSV file sent through sendemail command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-CSV-file-sent-through-sendemail-command/m-p/673410#M230587</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp; This is how my SPL looks like. Alert is created to run on weekly basis&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt; my initial search here&amp;gt;
| table hostname owner version 
| outputcsv test.csv
| stats values(owner) as email
| mvexpand email 
| eval subject="Test Alert" ,email_body= "This is test email body"
| map  search="|inputcsv test.csv | where owner=\"$email$\" |
 sendemail sendcsv=true to=\"$email$\" subject=\"$subject$\" message="\$email_body$\""&lt;/LI-CODE&gt;&lt;P&gt;I created subject and email_body using eval and using in sendemail.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 20:09:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-CSV-file-sent-through-sendemail-command/m-p/673410#M230587</guid>
      <dc:creator>Poojitha</dc:creator>
      <dc:date>2024-01-05T20:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Edit CSV file sent through sendemail command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-CSV-file-sent-through-sendemail-command/m-p/673411#M230588</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp; : I am seeing come inconsistency. Once the SPL worked where subject and email body were added as I specified . But sometimes it is not working.&lt;BR /&gt;Email is getting sent .&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Internal logs show subject and email body as empty &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 20:11:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-CSV-file-sent-through-sendemail-command/m-p/673411#M230588</guid>
      <dc:creator>Poojitha</dc:creator>
      <dc:date>2024-01-05T20:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Edit CSV file sent through sendemail command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Edit-CSV-file-sent-through-sendemail-command/m-p/678759#M232085</link>
      <description>&lt;P&gt;Came looking for an answer to this as well - seems there has been an idea for this for some time now ..&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://ideas.splunk.com/ideas/EID-I-717" target="_blank"&gt;https://ideas.splunk.com/ideas/EID-I-717&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 03:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Edit-CSV-file-sent-through-sendemail-command/m-p/678759#M232085</guid>
      <dc:creator>Esky73</dc:creator>
      <dc:date>2024-02-27T03:52:19Z</dc:date>
    </item>
  </channel>
</rss>

