<?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 export to CSV when fields have commas in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694768#M236292</link>
    <description>&lt;P&gt;Something got converted here &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &amp;amp;-&amp;gt;&amp;amp;amp;&lt;/P&gt;&lt;P&gt;But to the point - if the csv export works badly, it's a material for support case.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 04:35:26 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-07-31T04:35:26Z</dc:date>
    <item>
      <title>How to export to CSV when fields have commas</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694639#M236248</link>
      <description>&lt;P&gt;My data has a tables{}.values{} containing a list of lists. Within each list there is data. Sample data below. When I try to extract this search to csv via job id, it's not containing tables{}.values{} data within a single cell and instead treating it as it's own field as it's comma delimited. How can I keep all the data within a singular field when exporting to CSV?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample data:&lt;/P&gt;&lt;P&gt;test@email.com&lt;BR /&gt;The following was found, on website: google.com, by test user, with id:testuser, extracted from test.txt, on date testdate,another test field.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 07:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694639#M236248</guid>
      <dc:creator>cherrypick</dc:creator>
      <dc:date>2024-07-30T07:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to export to CSV when fields have commas</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694647#M236251</link>
      <description>&lt;P&gt;Have you tried using double quotes around the field values with commas in e.g.&lt;/P&gt;&lt;P&gt;field 1,"field2, with commas", field3&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 07:51:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694647#M236251</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-07-30T07:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to export to CSV when fields have commas</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694649#M236253</link>
      <description>&lt;P&gt;How would you do this? I've seen solutions that replace the commas with null but I'm not sure how to encapsulate field values with commas in a double quote, especially with field values that have multiple commas inside.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 08:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694649#M236253</guid>
      <dc:creator>cherrypick</dc:creator>
      <dc:date>2024-07-30T08:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to export to CSV when fields have commas</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694662#M236257</link>
      <description>&lt;P&gt;OK. Where are you exporting this from? Splunk should enclose the values in double quotes (and use double double quotes for the double quotes within a field value) when exporting search results.&lt;/P&gt;&lt;P&gt;So where are you exporting from/to?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 11:43:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694662#M236257</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-07-30T11:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to export to CSV when fields have commas</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694760#M236286</link>
      <description>&lt;P&gt;I'm using the splunk search API to convert search job to csv and downloading it. Unfortunately in this case splunk does not enclose values in double quotes.&lt;/P&gt;&lt;P&gt;/api/search/jobs/$alert_data$/results?isDownload=true&amp;amp;amp;timeFormat=%FT%T.%Q%3Az&amp;amp;amp;maxLines=0&amp;amp;amp;count=0&amp;amp;amp;filename=alert_data&amp;amp;amp;outputMode=csv&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 01:39:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694760#M236286</guid>
      <dc:creator>cherrypick</dc:creator>
      <dc:date>2024-07-31T01:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to export to CSV when fields have commas</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694768#M236292</link>
      <description>&lt;P&gt;Something got converted here &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &amp;amp;-&amp;gt;&amp;amp;amp;&lt;/P&gt;&lt;P&gt;But to the point - if the csv export works badly, it's a material for support case.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 04:35:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694768#M236292</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-07-31T04:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to export to CSV when fields have commas</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694774#M236294</link>
      <description>&lt;P&gt;the &amp;amp;amp is HTML encoding to escape the &amp;amp; character. Exporting to CSV works via the API but when field values are multi-value and within each multi-value there is a comma as part of the data, exporting to CSV doesn't work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 04:54:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694774#M236294</guid>
      <dc:creator>cherrypick</dc:creator>
      <dc:date>2024-07-31T04:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to export to CSV when fields have commas</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694779#M236295</link>
      <description>&lt;P&gt;Yes. I know that &amp;amp;amp; is a HTML entity. Hence the smiley.&lt;/P&gt;&lt;P&gt;Anyway. If exporting from WebUI works OK and the REST-initiated export does not there are two things you can do:&lt;/P&gt;&lt;P&gt;1) As I mentioned - raise a case with support. It seems like a bug. A proper CSV should be properly quoted/escaped/whatever.&lt;/P&gt;&lt;P&gt;2) You can use developer tools to check which REST endpoint the WebUI uses&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 05:47:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694779#M236295</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-07-31T05:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to export to CSV when fields have commas</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694781#M236297</link>
      <description>&lt;P&gt;Oh, apologies hahaha&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Yeah, I tried using dev tools to see which REST endpoint WebUI uses. Not for exporting to CSV but for exporting to pdf (uses pdfgen endpoint). But can't find Splunk documentation on it anywhere and other forums don't seem to have a working solution.&lt;/P&gt;&lt;P&gt;Anyways thanks for recommendation. Will raise a case with support for now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 05:52:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-to-CSV-when-fields-have-commas/m-p/694781#M236297</guid>
      <dc:creator>cherrypick</dc:creator>
      <dc:date>2024-07-31T05:52:08Z</dc:date>
    </item>
  </channel>
</rss>

