<?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: Ingest CSV removing Top X Lines from file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416174#M94740</link>
    <description>&lt;P&gt;Hello. Can you confirm that the name of the fields are 'Client Name Job Duration Job File Count Throughput (KB/sec) Job Primary ID Policy Name Post Deduplication Size(MB) Job Status Storage Unit Name'? If this is the case, why are there no ',' on this line? And also, why not set FIELD_HEADER_REGEX to ^Client?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:37:20 GMT</pubDate>
    <dc:creator>poete</dc:creator>
    <dc:date>2020-09-29T19:37:20Z</dc:date>
    <item>
      <title>Ingest CSV removing Top X Lines from file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416172#M94738</link>
      <description>&lt;P&gt;I am ingesting a csv file from my server.  I have tried many configurations on the props.conf to no success.  Any assistance with what I am doing incorrectly.&lt;/P&gt;

&lt;P&gt;Props.conf&lt;BR /&gt;
[OpsCenter]&lt;BR /&gt;
INDEXED_EXTRACTRIONS = csv&lt;BR /&gt;
FIELD_DELIMITER = ,&lt;BR /&gt;
FIELD_QUOTE = "&lt;BR /&gt;
DATETIME_CONFIG = CURRENT&lt;BR /&gt;
FIELD_HEADER_REGEX = ^Report&lt;BR /&gt;
HEADER_FIELD_LINE_NUMBER = 4&lt;/P&gt;

&lt;P&gt;file being ingested.&lt;/P&gt;

&lt;P&gt;Daily Status Splunk&lt;BR /&gt;&lt;BR /&gt;
Customizable tabular report of all backup data (size, start time, status code etc) by client. In this report, accelerator optimization, savings, or factor is not considered as part of deduplication optimization, savings, or factor. In all other reports, the deduplication values include accelerator values.&lt;BR /&gt;&lt;BR /&gt;
Report Time Frame: Previous 24 Hours&lt;BR /&gt;&lt;BR /&gt;
Client Name Job Duration    Job File Count  Throughput (KB/sec) Job Primary ID  Policy Name Post Deduplication Size(MB) Job Status  Storage Unit Name&lt;BR /&gt;
cpchiisi04.chi.cintas.com   4:31:00 1,439   106,432 161510  Isilon_SQL_Chi  824,210.78  Successful  stu_disk_cpchibk002&lt;BR /&gt;
cpmasisi04  23:40:57    1,595,462   55,103  952085  Isilon_Common   7,455.01    Successful  stu_disk_cpmasbk006&lt;BR /&gt;
cpmasisi04  24:00:58    1,051,251   101,290 952091  Isilon_Shares   3,440.43    Successful  stu_disk_cpmasbk006&lt;BR /&gt;
cpmasisi04  22:19:14    4,180,140   59,338  952093  Isilon_Shares   1,683.77    Successful  stu_disk_cpmasbk006&lt;BR /&gt;
cpmasisi04  35:13:56    9,271,112   51,439  952095  Isilon_Shares   11,470.67   Successful  stu_disk_cpmasbk006&lt;BR /&gt;
cpmasisi04  9:01:01 0   0   952807  Isilon_SQL  0   Failed  UNKNOWN&lt;BR /&gt;
crbo042.na.cintas.com   1:05:14 31,711,314  128,426 953499  VMDK_NonProd    7,785.33    Successful  stu_disk_cpmasbk007&lt;BR /&gt;
cdmasalc13.na.cintas.com    0:06:15 328,231 636,212 953575  VMDK_NonProd    297.52  Successful  stu_disk_cpmasbk007&lt;BR /&gt;
cpmasisi04  7:04:13 23,488  126,773 953825  Isilon_SQL  1,635,803.66    Successful  stu_disk_cpmasbk007&lt;BR /&gt;
cpmasfs01   1:30:53 53,000  24,894  953915  Creative_Marketing  126,956 Failed  cpmasbk006-hcart-robot-tld-0&lt;BR /&gt;
Report generated on May 20, 2018 8:00:17 AM                             &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:40:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416172#M94738</guid>
      <dc:creator>wilcoxj</dc:creator>
      <dc:date>2020-09-29T19:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ingest CSV removing Top X Lines from file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416173#M94739</link>
      <description>&lt;P&gt;I am not able to extract the header fields correctly.  It only extracts EXTRA_FIELD_X &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:40:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416173#M94739</guid>
      <dc:creator>wilcoxj</dc:creator>
      <dc:date>2020-09-29T19:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ingest CSV removing Top X Lines from file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416174#M94740</link>
      <description>&lt;P&gt;Hello. Can you confirm that the name of the fields are 'Client Name Job Duration Job File Count Throughput (KB/sec) Job Primary ID Policy Name Post Deduplication Size(MB) Job Status Storage Unit Name'? If this is the case, why are there no ',' on this line? And also, why not set FIELD_HEADER_REGEX to ^Client?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416174#M94740</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2020-09-29T19:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ingest CSV removing Top X Lines from file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416175#M94741</link>
      <description>&lt;P&gt;I copied it out of excel so it see's it as separate cells and not with the ","  Those are the headers.  I thought the FIELD_HEADER_REGEX was to the last line I wanted removed.  I am still trying to learn about props.conf files. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416175#M94741</guid>
      <dc:creator>wilcoxj</dc:creator>
      <dc:date>2020-09-29T19:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ingest CSV removing Top X Lines from file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416176#M94742</link>
      <description>&lt;P&gt;So I copied your data, added commas and suppressed the thousand separators. It looks like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Daily Status Splunk 
Customizable tabular report of all backup data (size, start time, status code etc) by client. In this report, accelerator optimization, savings, or factor is not considered as part of deduplication optimization, savings, or factor. In all other reports, the deduplication values include accelerator values. 
Report Time Frame: Previous 24 Hours 
Client Name,Job Duration,Job File Count, Throughput (KB/sec), Job Primary ID, Policy Name, Post Deduplication Size(MB,) Job Status, Storage Unit Name
cpchiisi04.chi.cintas.com,4:31:00,1439,106432,161510,Isilon_SQL_Chi,824210.78,Successful,stu_disk_cpchibk002
cpmasisi04,23:40:57,1595462,55103,952085,Isilon_Common,7455.01,Successful,stu_disk_cpmasbk006
cpmasisi04,24:00:58,1051251,101290,952091,Isilon_Shares,3440.43,Successful,stu_disk_cpmasbk006
cpmasisi04,22:19:14,4180140,59338,952093,Isilon_Shares,1683.77,Successful,stu_disk_cpmasbk006
cpmasisi04,35:13:56,9271112,51439,952095,Isilon_Shares,11470.67,Successful,stu_disk_cpmasbk006
cpmasisi04,9:01:01,0,0,952807,Isilon_SQL,0,Failed,UNKNOWN
crbo042.na.cintas.com,1:05:14,31711314,128426,953499,VMDK_NonProd,7785.33,Successful,stu_disk_cpmasbk007
cdmasalc13.na.cintas.com,0:06:15,328231,636212 953575,VMDK_NonProd,297.52,Successful,stu_disk_cpmasbk007
cpmasisi04,7:04:13,23488,126773,953825,Isilon_SQL,1635803.66,Successful,stu_disk_cpmasbk007
cpmasfs01,1:30:53, 53000,24894,953915,Creative_Marketing,126956,Failed,cpmasbk006-hcart-robot-tld-0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As it appears, the name of the fields is on line 4.&lt;/P&gt;

&lt;P&gt;The following sourcetype configuration enables to index the data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype_answer]
DATETIME_CONFIG = CURRENT
HEADER_FIELD_LINE_NUMBER = 4
INDEXED_EXTRACTIONS = csv
KV_MODE = none
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
category = Structured
description = Comma-separated value format. Set header and other settings in "Delimited Settings"
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just a few comments:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I did not use the regex config, as it is not necessary&lt;/LI&gt;
&lt;LI&gt;I did configure the timestamp to be the time of indexation, as there is not info in the file that could be used for this purpose.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I hope this answers your question.&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 14:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416176#M94742</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2018-05-24T14:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ingest CSV removing Top X Lines from file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416177#M94743</link>
      <description>&lt;P&gt;help me understand why this worked.  I had tried a config with &lt;/P&gt;

&lt;P&gt;DATETIME_CONFIG = CURRENT&lt;BR /&gt;
HEADER_FIELD_LINE_NUMBER = 4&lt;BR /&gt;
INDEXED_EXTRACTIONS = CSV&lt;BR /&gt;
FIELD_DELIMITER = ,&lt;/P&gt;

&lt;P&gt;Not sure of the order I used but this didn't work.  Is there a specific order you need to follow with props.conf?  any insight as to why it may not have worked for me would be wonderful.  Thank you so much for your response.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:41:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416177#M94743</guid>
      <dc:creator>wilcoxj</dc:creator>
      <dc:date>2020-09-29T19:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ingest CSV removing Top X Lines from file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416178#M94744</link>
      <description>&lt;P&gt;Hi. Can you please share the content of the csv file (first 10 lines), as I did?&lt;BR /&gt;
Did you take care of the thousand separator?&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 06:13:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingest-CSV-removing-Top-X-Lines-from-file/m-p/416178#M94744</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2018-05-28T06:13:10Z</dc:date>
    </item>
  </channel>
</rss>

