<?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 cvs log is not getting ingested when it has  only one line (in addition to the header) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/cvs-log-is-not-getting-ingested-when-it-has-only-one-line-in/m-p/676175#M113115</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We came across strange issue:&lt;BR /&gt;cvs logs are not getting ingested when it only has only one line (in addition to the header) in a log.&lt;BR /&gt;The same logs with two and more lines are ingested successfully&lt;BR /&gt;&lt;BR /&gt;Here are inputs.conf and&amp;nbsp; props.conf we are using&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Inputs.conf
[monitor:///apps/ab_cd/resources/abcd/reports_rr/reports/abc/.../*_splunk.csv]  
sourcetype=source_type_name
index=index_name
ignoreOlderThan = 2h
crcSalt = &amp;lt;SOURCE&amp;gt;

props.conf

[source_type_name]
KV_MODE = none
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
PREAMBLE_REGEX = ^Region
TIME_PREFIX= ^(?:[^,\n]*,){1}
TIME_FORMAT = %Y-%m-%d
MAX_TIMESTAMP_LOOKAHEAD=10
MAX_DAYS_HENCE = 5&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Appreciate all the ideas&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 15:04:09 GMT</pubDate>
    <dc:creator>mlevsh</dc:creator>
    <dc:date>2024-02-01T15:04:09Z</dc:date>
    <item>
      <title>cvs log is not getting ingested when it has  only one line (in addition to the header)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/cvs-log-is-not-getting-ingested-when-it-has-only-one-line-in/m-p/676175#M113115</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We came across strange issue:&lt;BR /&gt;cvs logs are not getting ingested when it only has only one line (in addition to the header) in a log.&lt;BR /&gt;The same logs with two and more lines are ingested successfully&lt;BR /&gt;&lt;BR /&gt;Here are inputs.conf and&amp;nbsp; props.conf we are using&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Inputs.conf
[monitor:///apps/ab_cd/resources/abcd/reports_rr/reports/abc/.../*_splunk.csv]  
sourcetype=source_type_name
index=index_name
ignoreOlderThan = 2h
crcSalt = &amp;lt;SOURCE&amp;gt;

props.conf

[source_type_name]
KV_MODE = none
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
PREAMBLE_REGEX = ^Region
TIME_PREFIX= ^(?:[^,\n]*,){1}
TIME_FORMAT = %Y-%m-%d
MAX_TIMESTAMP_LOOKAHEAD=10
MAX_DAYS_HENCE = 5&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Appreciate all the ideas&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 15:04:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/cvs-log-is-not-getting-ingested-when-it-has-only-one-line-in/m-p/676175#M113115</guid>
      <dc:creator>mlevsh</dc:creator>
      <dc:date>2024-02-01T15:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: cvs log is not getting ingested when it has  only one line (in addition to the header)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/cvs-log-is-not-getting-ingested-when-it-has-only-one-line-in/m-p/676248#M113136</link>
      <description>&lt;P&gt;I was expecting your props.conf to have&lt;/P&gt;&lt;PRE&gt;INDEXED_EXTRACTIONS = CSV&lt;/PRE&gt;&lt;P&gt;You are also using a TIME_PREFIX instead of TIMESTAMP_FIELDS...&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you have a PREAMBLE_REGEX set, which looks like it's set to the first fieldname in the header (which would remove the header line) though you don't provide FIELD_NAMES...&lt;/P&gt;&lt;P&gt;Putting that all together, it looks like you aren't really treating those files as CSV files.&amp;nbsp; I'm not sure what's going on, but I wonder if it would work right if you treated them as CSV.&lt;/P&gt;&lt;P&gt;If that doesn't help, it'd be useful to see the contents of a file that doesn't work, and one that does.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 13:57:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/cvs-log-is-not-getting-ingested-when-it-has-only-one-line-in/m-p/676248#M113136</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2024-02-01T13:57:48Z</dc:date>
    </item>
  </channel>
</rss>

