<?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 CSV format difference between e-mail and output in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/CSV-format-difference-between-e-mail-and-output/m-p/52073#M10003</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I have noticed a difference in format between the csv files generated by Splunk when e-mail the results or saving them using the outputcsv function.
If I export the results to e-mail the multiline Windows events are processed as a single field with \n for new lines.&lt;/P&gt;

&lt;P&gt;When I export the results into a field the multilines are preserved and I cannot use the csv fields in an excel sheet since Excel sees them as multiple lines.
First of all did anyone notice this as well and second (even more important &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ) how can i change this so that the outputcsv function works the same as the e-mail function?&lt;/P&gt;

&lt;P&gt;Second question, could anyone tell me if it is possible to change the names of the csv files stored by the outputcsv function?&lt;/P&gt;

&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 16 Sep 2010 19:28:18 GMT</pubDate>
    <dc:creator>CerielTjuh</dc:creator>
    <dc:date>2010-09-16T19:28:18Z</dc:date>
    <item>
      <title>CSV format difference between e-mail and output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-format-difference-between-e-mail-and-output/m-p/52073#M10003</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I have noticed a difference in format between the csv files generated by Splunk when e-mail the results or saving them using the outputcsv function.
If I export the results to e-mail the multiline Windows events are processed as a single field with \n for new lines.&lt;/P&gt;

&lt;P&gt;When I export the results into a field the multilines are preserved and I cannot use the csv fields in an excel sheet since Excel sees them as multiple lines.
First of all did anyone notice this as well and second (even more important &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ) how can i change this so that the outputcsv function works the same as the e-mail function?&lt;/P&gt;

&lt;P&gt;Second question, could anyone tell me if it is possible to change the names of the csv files stored by the outputcsv function?&lt;/P&gt;

&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2010 19:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-format-difference-between-e-mail-and-output/m-p/52073#M10003</guid>
      <dc:creator>CerielTjuh</dc:creator>
      <dc:date>2010-09-16T19:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: CSV format difference between e-mail and output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-format-difference-between-e-mail-and-output/m-p/52074#M10004</link>
      <description>&lt;P&gt;Although this isn't a great answer, I have had the same problem in using output_mode=csv.
Basically, my search had to remove a problem field:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -u xxx:yyy &lt;A href="https://server:8089/services/search/jobs" target="test_blank"&gt;https://server:8089/services/search/jobs&lt;/A&gt; -d"search=search * | head 100 | fields - _si"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And to get the results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -o ./myOutput.csv -u xxx:yyy 'https://server:8089/services/search/jobs/&amp;lt;sid&amp;gt;/results?output_mode=csv'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't know what the "_si" field is, but it's value has been something like "indexer-name\nindex".  We are not using a summary index, so that shouldn't be the case.&lt;/P&gt;

&lt;P&gt;I would use this as data points for a 'better csv output' support ticket.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 07:10:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-format-difference-between-e-mail-and-output/m-p/52074#M10004</guid>
      <dc:creator>cfergus</dc:creator>
      <dc:date>2011-01-19T07:10:48Z</dc:date>
    </item>
  </channel>
</rss>

