<?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 CSV file ingest, exclude header in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingest-exclude-header/m-p/656411#M111163</link>
    <description>&lt;P&gt;I'm ingesting logs from DNS (Next DNS via API) and struggling to exclude the header. I have seen &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt; resolve some other examples and I can't quite see where I'm going wrong. The common mistake is not doing this on the UF.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample data: &lt;/STRONG&gt;(comes in via a curl command and writes out to a file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timestamp,domain,query_type,dnssec,protocol,client_ip,status,reasons,destination_country,root_domain,device_id,device_name,device_model,device_local_ip,matched_name,client_name
2023-09-01T09:09:21.561936+00:00,beam.scs.splunk.com,AAAA,false,DNS-over-HTTPS,213.31.58.70,,,,splunk.com,8D512,"NUC10i5",,,,nextdns-cli
2023-09-01T09:09:09.154592+00:00,time.cloudflare.com,A,true,DNS-over-HTTPS,213.31.58.70,,,,cloudflare.com,14D3C,"NUC10i5",,,,nextdns-cli&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UF (On syslog server) v8.1.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;props.conf
[nextdns:dns]
INDEXED_EXTRACTIONS = CSV
HEADER_FIELD_LINE_NUMBER = 1
HEADER_FIELD_DELIMITER =,
FIELD_NAMES = timestamp,domain,query_type,dnssec,protocol,client_ip,status,reasons,destination_country,root_domain,device_id,device_name,device_model,device_local_ip,matched_name,client_name
TIMESTAMP_FIELDS = timestamp

inputs.conf
[monitor:///opt/remote-logs/nextdns/nextdns.log]
index = nextdns
sourcetype = nextdns:dns
initCrcLength = 375&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I&lt;/STRONG&gt;&lt;STRONG&gt;ndexer (SVA S1) v9.1.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Disabled the options, I will apply Great8 once I have this fixed. All the work needs to happen on the UF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[nextdns:dns]
#INDEXED_EXTRACTIONS = CSV
#HEADER_FIELD_LINE_NUMBER = 1
#HEADER_FIELD_DELIMITER =,
#FIELD_NAMES = timestamp,domain,query_type,dnssec,protocol,client_ip,status,reasons,destination_country,root_domain,device_id,device_name,device_model,device_local_ip,matched_name,client_name
#TIMESTAMP_FIELDS = timestamp
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Challenge:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'm still getting the header field ingest&lt;/LI&gt;&lt;LI&gt;I have deleted the indexed data, regenerated updated log, reingested and still issues. Obviously I have restarted splunk on each instance after respective changes.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2023-09-01 12-01-58.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27041iDD76108D445042FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2023-09-01 12-01-58.png" alt="Screenshot from 2023-09-01 12-01-58.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 11:05:20 GMT</pubDate>
    <dc:creator>NullZero</dc:creator>
    <dc:date>2023-09-01T11:05:20Z</dc:date>
    <item>
      <title>CSV file ingest, exclude header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingest-exclude-header/m-p/656411#M111163</link>
      <description>&lt;P&gt;I'm ingesting logs from DNS (Next DNS via API) and struggling to exclude the header. I have seen &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt; resolve some other examples and I can't quite see where I'm going wrong. The common mistake is not doing this on the UF.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample data: &lt;/STRONG&gt;(comes in via a curl command and writes out to a file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timestamp,domain,query_type,dnssec,protocol,client_ip,status,reasons,destination_country,root_domain,device_id,device_name,device_model,device_local_ip,matched_name,client_name
2023-09-01T09:09:21.561936+00:00,beam.scs.splunk.com,AAAA,false,DNS-over-HTTPS,213.31.58.70,,,,splunk.com,8D512,"NUC10i5",,,,nextdns-cli
2023-09-01T09:09:09.154592+00:00,time.cloudflare.com,A,true,DNS-over-HTTPS,213.31.58.70,,,,cloudflare.com,14D3C,"NUC10i5",,,,nextdns-cli&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UF (On syslog server) v8.1.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;props.conf
[nextdns:dns]
INDEXED_EXTRACTIONS = CSV
HEADER_FIELD_LINE_NUMBER = 1
HEADER_FIELD_DELIMITER =,
FIELD_NAMES = timestamp,domain,query_type,dnssec,protocol,client_ip,status,reasons,destination_country,root_domain,device_id,device_name,device_model,device_local_ip,matched_name,client_name
TIMESTAMP_FIELDS = timestamp

inputs.conf
[monitor:///opt/remote-logs/nextdns/nextdns.log]
index = nextdns
sourcetype = nextdns:dns
initCrcLength = 375&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I&lt;/STRONG&gt;&lt;STRONG&gt;ndexer (SVA S1) v9.1.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Disabled the options, I will apply Great8 once I have this fixed. All the work needs to happen on the UF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[nextdns:dns]
#INDEXED_EXTRACTIONS = CSV
#HEADER_FIELD_LINE_NUMBER = 1
#HEADER_FIELD_DELIMITER =,
#FIELD_NAMES = timestamp,domain,query_type,dnssec,protocol,client_ip,status,reasons,destination_country,root_domain,device_id,device_name,device_model,device_local_ip,matched_name,client_name
#TIMESTAMP_FIELDS = timestamp
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Challenge:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'm still getting the header field ingest&lt;/LI&gt;&lt;LI&gt;I have deleted the indexed data, regenerated updated log, reingested and still issues. Obviously I have restarted splunk on each instance after respective changes.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2023-09-01 12-01-58.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27041iDD76108D445042FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2023-09-01 12-01-58.png" alt="Screenshot from 2023-09-01 12-01-58.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 11:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingest-exclude-header/m-p/656411#M111163</guid>
      <dc:creator>NullZero</dc:creator>
      <dc:date>2023-09-01T11:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file ingest, exclude header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingest-exclude-header/m-p/656414#M111165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224138"&gt;@NullZero&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as you can see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/ITSI/4.17.0/Configure/props.conf#props.conf.example" target="_blank"&gt;https://docs.splunk.com/Documentation/ITSI/4.17.0/Configure/props.conf#props.conf.example&lt;/A&gt;&amp;nbsp;you should try add to your props.conf PREAMBLE_REGEX:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[nextdns:dns]
INDEXED_EXTRACTIONS = CSV
HEADER_FIELD_LINE_NUMBER = 1
HEADER_FIELD_DELIMITER =,
FIELD_NAMES = timestamp,domain,query_type,dnssec,protocol,client_ip,status,reasons,destination_country,root_domain,device_id,device_name,device_model,device_local_ip,matched_name,client_name
TIMESTAMP_FIELDS = timestamp
PREAMBLE_REGEX = ^timestamp,domain,query_type,&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 11:14:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingest-exclude-header/m-p/656414#M111165</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-01T11:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: CSV file ingest, exclude header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingest-exclude-header/m-p/656429#M111169</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; . I saw other options but I didn't think them necessary, appreciate the assistance and good to have solved it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 12:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-file-ingest-exclude-header/m-p/656429#M111169</guid>
      <dc:creator>NullZero</dc:creator>
      <dc:date>2023-09-01T12:45:54Z</dc:date>
    </item>
  </channel>
</rss>

