<?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: Multiple lines in a CSV being combined into a single event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337634#M92979</link>
    <description>&lt;P&gt;cusello,&lt;/P&gt;

&lt;P&gt;Thanks for the reply. I changed the props.conf on both the UF and the SH to use the sourcetype, but I am still seeing the issue.&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 13:43:05 GMT</pubDate>
    <dc:creator>chrishartsock</dc:creator>
    <dc:date>2017-04-19T13:43:05Z</dc:date>
    <item>
      <title>Multiple lines in a CSV being combined into a single event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337632#M92977</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I am pulling a simple CSV file. It only has two fields: a url and an identification number. For example:&lt;BR /&gt;
&lt;A href="https://google.com" target="_blank"&gt;https://google.com&lt;/A&gt;, 531&lt;BR /&gt;
&lt;A href="https://amazon.com" target="_blank"&gt;https://amazon.com&lt;/A&gt;, 9849&lt;/P&gt;

&lt;P&gt;The problem is, Splunk is combining multiple events into a single event, which I do not want. I believe it may be due to the fact that there are no timestamps in the events (I would like for it to just set _time as the index time) and so it is combining events while looking for a timestamp. However, I have tried to correct this by setting DATETIME_CONFIG = CURRENT, and had no luck. &lt;/P&gt;

&lt;P&gt;The data is pulled from a file on a Universal Forwarder. It then goes to a Heavy Forwarder, which sends it to our indexers. The config files are as follows:&lt;BR /&gt;
UF:&lt;BR /&gt;
inputs.conf:&lt;BR /&gt;
[monitor://C:\UrlFile.csv]&lt;BR /&gt;
sourcetype = url&lt;BR /&gt;
index = security&lt;BR /&gt;
ignoreOlderThan = 7d&lt;BR /&gt;
disabled = false&lt;/P&gt;

&lt;P&gt;props.conf:&lt;BR /&gt;
[source::C:\UrlFile.csv]&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
DATETIME_CONFIG = CURRENT&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;/P&gt;

&lt;P&gt;Search Head:&lt;BR /&gt;
props.conf:&lt;BR /&gt;
[source::C:\UrlFile.csv]&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 1&lt;BR /&gt;
REPORT-url = url_extract&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;BR /&gt;
[url_extract]&lt;BR /&gt;
DELIMS = ","&lt;BR /&gt;
FIELDS = "url", "id"&lt;/P&gt;

&lt;P&gt;Any help will be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;PS: This question is very similar to the question at this link, &lt;A href="https://answers.splunk.com/answers/123998/issues-with-multiple-lines-in-csv-file-being-treated-as-a-single-event.html?utm_source=typeahead&amp;amp;utm_medium=newquestion&amp;amp;utm_campaign=no_votes_sort_relev" target="_blank"&gt;https://answers.splunk.com/answers/123998/issues-with-multiple-lines-in-csv-file-being-treated-as-a-single-event.html?utm_source=typeahead&amp;amp;utm_medium=newquestion&amp;amp;utm_campaign=no_votes_sort_relev&lt;/A&gt;, but his data has timestamps whereas mine does not.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:44:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337632#M92977</guid>
      <dc:creator>chrishartsock</dc:creator>
      <dc:date>2020-09-29T13:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a CSV being combined into a single event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337633#M92978</link>
      <description>&lt;P&gt;Hi chrishartsock,&lt;BR /&gt;
try to configure your props.conf using sourcetype instead source and should run:&lt;BR /&gt;
props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[url]
KV_MODE = none
MAX_TIMESTAMP_LOOKAHEAD = 1
REPORT-url = url_extract
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 07:15:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337633#M92978</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-19T07:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a CSV being combined into a single event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337634#M92979</link>
      <description>&lt;P&gt;cusello,&lt;/P&gt;

&lt;P&gt;Thanks for the reply. I changed the props.conf on both the UF and the SH to use the sourcetype, but I am still seeing the issue.&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:43:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337634#M92979</guid>
      <dc:creator>chrishartsock</dc:creator>
      <dc:date>2017-04-19T13:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a CSV being combined into a single event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337635#M92980</link>
      <description>&lt;P&gt;Hi Chris,&lt;BR /&gt;
Sorry but last time I did not notice a mistake in the configuration: delete &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 1&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Every way, to be sure of props.conf, download an example of your file UrlFile.csv and follow the web procedure for Data Input [Settings -- Add data]: it's not important to complete uploading but you have to identify and save the correct props.conf.&lt;BR /&gt;
You could upload file with the correct props.conf in a test index so you can test your props.conf.&lt;BR /&gt;
In this way you can verify on the fly your configuration.&lt;/P&gt;

&lt;P&gt;When it's OK remeber to copy it both on your Indexers and forwarders.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:39:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337635#M92980</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-19T14:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a CSV being combined into a single event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337636#M92981</link>
      <description>&lt;P&gt;@chrishartsock...&lt;/P&gt;

&lt;P&gt;If your CSV File has only URL and ID field, I would expect it to have one row per URL. Hence this seems more like a &lt;STRONG&gt;lookup&lt;/STRONG&gt; candidate to me rather than indexing. How many rows are there in this file and how frequently does this file change. If you add URL and ID as the column heading you can better upload UrlFile.csv as Lookup table.&lt;/P&gt;

&lt;P&gt;Can you try the following props.conf at the Universal forwarder level?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ url_file_csv ]
INDEXED_EXTRACTIONS=csv
FIELD_NAMES=url,id
DATETIME_CONFIG=CURRENT
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
CHARSET=AUTO
KV_MODE=none
category=Custom
description=URL and ID Comma-separated value format.
disabled=false
pulldown_type=true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Apr 2017 06:07:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337636#M92981</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-20T06:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a CSV being combined into a single event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337637#M92982</link>
      <description>&lt;P&gt;niketnilay,&lt;/P&gt;

&lt;P&gt;This worked beautifully for me. &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 12:44:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337637#M92982</guid>
      <dc:creator>chrishartsock</dc:creator>
      <dc:date>2017-04-20T12:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a CSV being combined into a single event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337638#M92983</link>
      <description>&lt;P&gt;@chrishhartsock... Glad it worked. Do consider the option to use lookup instead of indexing data if&lt;BR /&gt;
1) Not too many rows&lt;BR /&gt;
2) Data does not update frequently&lt;BR /&gt;
3) If URL and ID are present in your existing Data, you can explore &lt;STRONG&gt;outputlookup&lt;/STRONG&gt; command to perform periodic updates through scheduled searches.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 13:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337638#M92983</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-20T13:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a CSV being combined into a single event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337639#M92984</link>
      <description>&lt;P&gt;@niketnilay&lt;BR /&gt;
I would love to be able to use a lookup, but it is updated every fifteen minutes and there are around 5,000 new events every hour. However, if there is a better way to do it I am definitely open to suggestions.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 13:20:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337639#M92984</guid>
      <dc:creator>chrishartsock</dc:creator>
      <dc:date>2017-04-20T13:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a CSV being combined into a single event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337640#M92985</link>
      <description>&lt;P&gt;Presently I have the same problem but what I looking for is only to recognize the CR as new event in files with the structure below, because the data extraction allow only two conditions [space and comma]&lt;/P&gt;

&lt;P&gt;05/25/2018 15:21:55,INFO,10.3.140.197,j.brown,User logged in&lt;BR /&gt;
05/25/2018 15:29:36,INFO,10.3.7.254,j.smith,User logged in&lt;BR /&gt;
05/25/2018 15:29:59,INFO,10.3.7.254,j.smith,Temp Token Request&lt;BR /&gt;
05/25/2018 15:29:59,INFO,,j.smith,Message sent:Backup Token Assigned&lt;BR /&gt;
05/25/2018 15:33:12,INFO,10.3.7.254,j.smith,User logged in&lt;BR /&gt;
05/25/2018 17:25:58,INFO,10.3.7.254,j.smith,User logged in&lt;BR /&gt;
05/25/2018 17:26:23,ERROR,10.3.7.254,j.smith,Smart Token Request&lt;BR /&gt;
05/25/2018 17:26:23,INFO,,j.smith,Message sent:Smart Token Request Failed&lt;BR /&gt;
05/25/2018 17:27:10,ERROR,10.3.7.254,j.smith,Smart Token Request&lt;BR /&gt;
05/25/2018 17:27:10,INFO,,j.smith,Message sent:Smart Token Request Failed&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 07:52:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-lines-in-a-CSV-being-combined-into-a-single-event/m-p/337640#M92985</guid>
      <dc:creator>arkonner</dc:creator>
      <dc:date>2018-05-28T07:52:35Z</dc:date>
    </item>
  </channel>
</rss>

