<?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 with last 2 fields XML payloads in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356737#M65159</link>
    <description>&lt;P&gt;I tried to attach but stated I don't have enough karma points - let me paste here.  (I have not put all the data in the payloads due to customer data - but I have put a line there  that has , in the data.  and you see the "newline's" in the payloads.&lt;/P&gt;

&lt;P&gt;LogType(v1.0),RootLogId,SubLogId,TransactionId,Instance,Operation,Status,User,Hostname,Protocol,Target,StartTime,ExecuteTime,ResponseCode,FullRequest,FullResponse&lt;BR /&gt;
"southbound","PLP1EM01PL61804231005392658CAI3G1_2","/1/1/1","","","PGW_Create","SUCCESSFUL","","PLP1EM01PL6","SOAP","PGW-SNQ","2018-04-23 10.05.39.892","00 00:00:00.843","0","&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; #### more tags and data - data can have comma's (ex. below)
&amp;lt;serviceType&amp;gt;serviceTypeId=0,OU=SERVICE,OU=UMA,NE=MOBILE_DATA_SERVER&amp;lt;/serviceType&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;",&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; #### more tags and data - data can have comma's (ex. below)
&amp;lt;serviceType&amp;gt;serviceTypeId=0,OU=SERVICE,OU=UMA,NE=MOBILE_DATA_SERVER&amp;lt;/serviceType&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;"&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:12:09 GMT</pubDate>
    <dc:creator>odigokid</dc:creator>
    <dc:date>2020-09-29T19:12:09Z</dc:date>
    <item>
      <title>CSV file with last 2 fields XML payloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356735#M65157</link>
      <description>&lt;P&gt;Need help with the following CSV (everything I am trying, the XML fields are getting parsed incorrectly)&lt;/P&gt;

&lt;P&gt;so I have a CSV file with a header line and then data record&lt;/P&gt;

&lt;P&gt;The last two fields - FullRequest, and FullResponse - are SOAP payloads which have \n and ','  in the payload - so splunk is treating the newline as a new event, and it's also chopping at the comma because that's the delimiter.&lt;/P&gt;

&lt;P&gt;The other fields before these are what I would call your standard CSV fields in "","","",""  - but as you can see some fields can be empty (i.e. ,"",)&lt;/P&gt;

&lt;P&gt;so looking for approaches to parsing this log file.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 20:43:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356735#M65157</guid>
      <dc:creator>odigokid</dc:creator>
      <dc:date>2018-04-23T20:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file with last 2 fields XML payloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356736#M65158</link>
      <description>&lt;P&gt;posting a sample event will help &lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 20:47:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356736#M65158</guid>
      <dc:creator>ssadanala1</dc:creator>
      <dc:date>2018-04-23T20:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file with last 2 fields XML payloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356737#M65159</link>
      <description>&lt;P&gt;I tried to attach but stated I don't have enough karma points - let me paste here.  (I have not put all the data in the payloads due to customer data - but I have put a line there  that has , in the data.  and you see the "newline's" in the payloads.&lt;/P&gt;

&lt;P&gt;LogType(v1.0),RootLogId,SubLogId,TransactionId,Instance,Operation,Status,User,Hostname,Protocol,Target,StartTime,ExecuteTime,ResponseCode,FullRequest,FullResponse&lt;BR /&gt;
"southbound","PLP1EM01PL61804231005392658CAI3G1_2","/1/1/1","","","PGW_Create","SUCCESSFUL","","PLP1EM01PL6","SOAP","PGW-SNQ","2018-04-23 10.05.39.892","00 00:00:00.843","0","&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; #### more tags and data - data can have comma's (ex. below)
&amp;lt;serviceType&amp;gt;serviceTypeId=0,OU=SERVICE,OU=UMA,NE=MOBILE_DATA_SERVER&amp;lt;/serviceType&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;",&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; #### more tags and data - data can have comma's (ex. below)
&amp;lt;serviceType&amp;gt;serviceTypeId=0,OU=SERVICE,OU=UMA,NE=MOBILE_DATA_SERVER&amp;lt;/serviceType&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:12:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356737#M65159</guid>
      <dc:creator>odigokid</dc:creator>
      <dc:date>2020-09-29T19:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file with last 2 fields XML payloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356738#M65160</link>
      <description>&lt;P&gt;I generally use &lt;CODE&gt;INDEXED_EXTRACTIONS&lt;/CODE&gt; which should work fine for your data:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.3/Data/Extractfieldsfromfileswithstructureddata"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.3/Data/Extractfieldsfromfileswithstructureddata&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 21:02:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356738#M65160</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-04-23T21:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file with last 2 fields XML payloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356739#M65161</link>
      <description>&lt;P&gt;Hi - this is my current props.conf which is not working&lt;/P&gt;

&lt;P&gt;DATETIME_CONFIG = &lt;BR /&gt;
INDEXED_EXTRACTIONS = csv&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
category = Structured&lt;BR /&gt;
description = Comma-separated value format. Set header and other settings in "Delimited Settings"&lt;BR /&gt;
disabled = false&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;

&lt;P&gt;Image of what I am seeing on search head - the xml is getting broken on the newlines&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://www.screencast.com/t/dmOS7eCi6H" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:12:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356739#M65161</guid>
      <dc:creator>odigokid</dc:creator>
      <dc:date>2020-09-29T19:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file with last 2 fields XML payloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356740#M65162</link>
      <description>&lt;P&gt;Image link - &lt;A href="http://www.screencast.com/t/dmOS7eCi6H"&gt;link text&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 21:29:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356740#M65162</guid>
      <dc:creator>odigokid</dc:creator>
      <dc:date>2018-04-23T21:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file with last 2 fields XML payloads</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356741#M65163</link>
      <description>&lt;P&gt;sorry link &lt;BR /&gt;
&lt;A href="http://www.screencast.com/t/dmOS7eCi6H"&gt;http://www.screencast.com/t/dmOS7eCi6H&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 21:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-with-last-2-fields-XML-payloads/m-p/356741#M65163</guid>
      <dc:creator>odigokid</dc:creator>
      <dc:date>2018-04-23T21:31:09Z</dc:date>
    </item>
  </channel>
</rss>

