<?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: CSV file different format when downloaded from report generated. in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/684880#M1726</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264462"&gt;@JMPP&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I tested on Splunk Enterprise 9.2 with a slight correction:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;action.email.escapeCSVNewline = 0&lt;/LI-CODE&gt;&lt;P&gt;The attachment received did not encode newlines as \n.&lt;/P&gt;</description>
    <pubDate>Sat, 20 Apr 2024 19:59:13 GMT</pubDate>
    <dc:creator>tscroggins</dc:creator>
    <dc:date>2024-04-20T19:59:13Z</dc:date>
    <item>
      <title>CSV file different format when downloaded from report generated.</title>
      <link>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/683425#M1720</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For some reason I'm getting&amp;nbsp;&amp;nbsp;different CSV format file when I downloaded vs from the report generated on scheduled report functionality.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;- When I downloaded the file from the splunk search option I am getting some like:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{"timestamp: 2024-04-02T22:42:19.655Z&lt;BR /&gt;sequence: 735&lt;BR /&gt;blablaclasname: com.rr.jj.eee.rrr&lt;BR /&gt;anotherblablaclasnameName: com.rr.rr.rrrr.rrr&lt;BR /&gt;level: ERRROR&lt;/P&gt;&lt;P&gt;exceptionMessage: blablabc&lt;BR /&gt;....&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;- When I received by email the file using the same query I'm getting something like:&lt;/FONT&gt;&lt;BR /&gt;{"timestamp: 2024-04-02T22:42:19.655Z\nsequence: 735\nblablaclasname: com.rr.jj.eee.rrr\nanotherblablaclasnameName: com.rr.rr.rrrr.rrr\nlevel: ERRROR\n\nexceptionMessage: blablabc\n....}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;*.conf file I am seeing:&lt;/FONT&gt;&lt;BR /&gt;LINE_BREAKER = \}(\,?[\r\n]+)\{?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 15:24:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/683425#M1720</guid>
      <dc:creator>JMPP</dc:creator>
      <dc:date>2024-04-05T15:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file different format when downloaded from report generated.</title>
      <link>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/683491#M1721</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264462"&gt;@JMPP&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Splunkweb and the sendemail command/action use different code to render CSV files. Fortunately, there's a sendemail option to enable/disable escaping newline characters in CSV attachments:&lt;/P&gt;&lt;P&gt;action.email.escapeCSVNewline&lt;/P&gt;&lt;P&gt;The default value is true.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Un&lt;/EM&gt;fortunately, the setting isn't exposed through the Searches, reports, and alerts Advanced Edit page. Try adding the following setting directly to your alert's savedsearches.conf stanza in either $SPLUNK_HOME/etc/apps/&amp;lt;app&amp;gt;/local/savedsearches.conf for shared searches or $SPLUNK_HOME/etc/users/&amp;lt;user&amp;gt;/&amp;lt;app&amp;gt;/local/savedsearches.conf for private searches, e.g.:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;# $SPLUNK_HOME/etc/apps/search/local/savedsearches.conf

[My Groovy Alert]
# ...
action.email.escapeCSVNewline = false&lt;/LI-CODE&gt;&lt;P&gt;If you're using Splunk Cloud, support can help you update the file, or you can package the alert in a custom app. The latter warrants a separate question.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 15:41:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/683491#M1721</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2024-04-06T15:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file different format when downloaded from report generated.</title>
      <link>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/683627#M1722</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/49493"&gt;@tscroggins&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Really appreciate your comments, I'm currently working with the changes You've suggested.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 18:04:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/683627#M1722</guid>
      <dc:creator>JMPP</dc:creator>
      <dc:date>2024-04-08T18:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file different format when downloaded from report generated.</title>
      <link>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/684286#M1724</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/49493"&gt;@tscroggins&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is the suggested configuration restricted to certain Splunk Versions?, because we have tried different options but we are not seeing the CSV formated as expected also the instances were restarted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance, we have ran the reports simple as possible.&lt;BR /&gt;e.g.:&lt;BR /&gt;"index=os earliest=-5m |timechart span=1m values(host)"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 21:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/684286#M1724</guid>
      <dc:creator>JMPP</dc:creator>
      <dc:date>2024-04-15T21:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file different format when downloaded from report generated.</title>
      <link>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/684880#M1726</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264462"&gt;@JMPP&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I tested on Splunk Enterprise 9.2 with a slight correction:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;action.email.escapeCSVNewline = 0&lt;/LI-CODE&gt;&lt;P&gt;The attachment received did not encode newlines as \n.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2024 19:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/684880#M1726</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2024-04-20T19:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file different format when downloaded from report generated.</title>
      <link>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/684907#M1727</link>
      <description>&lt;P&gt;As a quick follow-up, the setting is recognized by all currently supported versions of Splunk Enterprise and present at least as far back as Splunk Enterprise 8.1; however, it's not documented.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 14:50:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/684907#M1727</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2024-04-21T14:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file different format when downloaded from report generated.</title>
      <link>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/689133#M1771</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/49493"&gt;@tscroggins&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thanks for all your comments, I'm running with 8.2v and the 1st suggestion you made worked, but we didn't see the changes until the&lt;SPAN&gt;&amp;nbsp;restart of the Search heads were made.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Now the CSV files are comming with the right format. One thing I noticed, If I clone an existing report with CSV format configuration, the new one will adopt that configuration too.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 18:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/CSV-file-different-format-when-downloaded-from-report-generated/m-p/689133#M1771</guid>
      <dc:creator>JMPP</dc:creator>
      <dc:date>2024-05-30T18:33:45Z</dc:date>
    </item>
  </channel>
</rss>

