<?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 report not showing data correctly in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466614#M80388</link>
    <description>&lt;P&gt;Is it possible for you to share a query for a better understanding?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2020 17:32:16 GMT</pubDate>
    <dc:creator>vikramyadav</dc:creator>
    <dc:date>2020-02-13T17:32:16Z</dc:date>
    <item>
      <title>CSV report not showing data correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466613#M80387</link>
      <description>&lt;P&gt;alt textHi, I have a daily scheduled report which goes to sftp server in a csv format. I am getting complaints that the data is not coming properly. I investigated and suspect that it may be because of the multi valued fields in the table but I am not sure. In Splunk it shows something like I have attached and in the CSV which is delivered on the server it is seen something like this very weird with column name deviceDescription&lt;/P&gt;

&lt;P&gt;app,"serviceName","2020-02-12 23:34:01","2020-02-12 23:34:01",34567,ANA,C,,51228586,"HD BOX (CISCO),,,,,,,,,,,,&lt;BR /&gt;
TIVO 500GB BOX (CISCO),,,,,,,,,,,,,,,,,,,,,,&lt;BR /&gt;
TIVO 1TB BOX (ARRIS),,,,,,,,,,,,,,,,,,,,,,&lt;BR /&gt;
TIVO 1TB BOX (ARRIS)",456,Agent,,,,5678997,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,&lt;/P&gt;

&lt;P&gt;Total columns in the table is 23 but it seems in CSV they are more than 23 commas coming.&lt;/P&gt;

&lt;P&gt;Any help is appreciated.&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8366i5C76851EEF4D32F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 17:05:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466613#M80387</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-02-13T17:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: CSV report not showing data correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466614#M80388</link>
      <description>&lt;P&gt;Is it possible for you to share a query for a better understanding?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 17:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466614#M80388</guid>
      <dc:creator>vikramyadav</dc:creator>
      <dc:date>2020-02-13T17:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: CSV report not showing data correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466615#M80389</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/109761"&gt;@vikramyadav&lt;/a&gt;  There is nothing much in the search. There are few fields which I am extracting are multi valued like deviceDescription. I am trying to combine it's values by using mv command but not sure if it's working. Not sure what is causing that issue on csv&lt;/P&gt;

&lt;P&gt;index=temp_prd serviceName source=tomcat.txt&lt;BR /&gt;
    | rex field=_raw "deviceDescription&amp;gt;(?&lt;DEVICEDESCRIPTION&gt;[^&amp;lt;\/]+)" max_match=20 &lt;BR /&gt;
    | rex field=_raw "requestTimestamp&amp;gt;(?&lt;REQUESTTIMESTAMP&gt;[^&amp;lt;\/]+)" &lt;BR /&gt;
    | eval requestTimestam=strptime('requestTimestamp',"%Y-%m-%dT%H:%M:%S") &lt;BR /&gt;
    | eval requestTimestamp=strftime('requestTimestam',"%Y-%m-%d %H:%M:%S") &lt;BR /&gt;
| dedup requestID &lt;BR /&gt;
| table originatorURI, activityname requestTimestamp,responseTimestamp,AccountNumber,ref,Channel,Code,accountDiagnosticsSummary,diagnosticIdentifier,deviceDescription&lt;BR /&gt;
| makemv delim="|" deviceDescription&lt;/REQUESTTIMESTAMP&gt;&lt;/DEVICEDESCRIPTION&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466615#M80389</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-09-30T04:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: CSV report not showing data correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466616#M80390</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=temp_prd serviceName source=tomcat.txt 
| rex field=_raw "deviceDescription\&amp;gt;(?&amp;lt;deviceDescription&amp;gt;.*?)\&amp;lt;\/" max_match=20 
| rex field=_raw "requestTimestamp\&amp;gt;(?&amp;lt;requestTimestamp&amp;gt;.*?)\&amp;lt;\/" 
| dedup requestID
| fields - _*
| table originatorURI, activityname requestTimestamp,responseTimestamp,AccountNumber,ref,Channel,Code,accountDiagnosticsSummary,diagnosticIdentifier,deviceDescription 
| eval deviceDescription = mvjoin(deviceDescription,"|")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hi, @Shashank_87&lt;BR /&gt;
how about this?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 11:34:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466616#M80390</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-15T11:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: CSV report not showing data correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466617#M80391</link>
      <description>&lt;P&gt;@to4kawa  It worked like charm. Thanks. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 15:01:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466617#M80391</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-02-18T15:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: CSV report not showing data correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466618#M80392</link>
      <description>&lt;P&gt;@to4kawa Hi, it is still not working. So the issue is when sending this file to server using SFTP, it's not in the proper format. There are extra commas coming in multiple rows don't know for what reason. &lt;/P&gt;

&lt;P&gt;Even if i export that from Splunk and open the file in Notepad++, it shows incorrectly. Attached are the 2 files - one from server and one directly from Splunk.&lt;/P&gt;

&lt;P&gt;The data in both of these attached file should be coming as one row but they are going to next line and the server file have extra commas for no reason.&lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 17:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466618#M80392</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-02-25T17:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: CSV report not showing data correctly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466619#M80393</link>
      <description>&lt;P&gt;add at last:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;....
| fields - _*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2020 19:54:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-report-not-showing-data-correctly/m-p/466619#M80393</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-25T19:54:47Z</dc:date>
    </item>
  </channel>
</rss>

