<?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: sourcetype isn't parsing DHCP data correctlyon indexer but does when I manually add on search head in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-isn-t-parsing-DHCP-data-correctlyon-indexer-but-does/m-p/254974#M48963</link>
    <description>&lt;P&gt;worked perfectly - thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2016 12:10:05 GMT</pubDate>
    <dc:creator>rusty009</dc:creator>
    <dc:date>2016-04-04T12:10:05Z</dc:date>
    <item>
      <title>sourcetype isn't parsing DHCP data correctlyon indexer but does when I manually add on search head</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-isn-t-parsing-DHCP-data-correctlyon-indexer-but-does/m-p/254972#M48961</link>
      <description>&lt;P&gt;I am attempting to parse windows DHCP data, for those who aren't familiar with the format, the logs have a description which never changes from lines 1-32 of every file, on line 33 is the header and then from there is the data in csv format, delimited by a comma. My props.conf definition is below,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dhcp:script_output]
HEADER_FIELD_LINE_NUMBER=33
CHARSET=UTF-8
INDEXED_EXTRACTIONS=csv
KV_MODE=none
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=false
category=Structured
description=DHCP CSV
disabled=false
pulldown_type=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works flawlessly when I manually upload this on the GUI on my searchead, but when I place it in the props.conf file on my indexers, it doesn't parse the data. It just treats one line as one event. Is there something obvious I am missing ?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 19:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-isn-t-parsing-DHCP-data-correctlyon-indexer-but-does/m-p/254972#M48961</guid>
      <dc:creator>rusty009</dc:creator>
      <dc:date>2016-03-18T19:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: sourcetype isn't parsing DHCP data correctlyon indexer but does when I manually add on search head</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-isn-t-parsing-DHCP-data-correctlyon-indexer-but-does/m-p/254973#M48962</link>
      <description>&lt;P&gt;In the props.conf documentation that describes "INDEXED_EXTRACTIONS" and "HEADER_FIELD_LINE_NUMBER", the introductory comments say:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;This feature and all of its settings apply at input time, when data is
  first read by Splunk.  The setting is used on a Splunk system that has
  configured inputs acquiring the data.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, you probably need the following&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt; on the &lt;STRONG&gt;forwarder&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///thepathtotheDHCPlogs]
sourcetype=dhcp:script_output
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt; on the &lt;STRONG&gt;forwarder&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [dhcp:script_output]
 HEADER_FIELD_LINE_NUMBER=33
 INDEXED_EXTRACTIONS=csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt; on the &lt;STRONG&gt;indexer&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [dhcp:script_output]
 CHARSET=UTF-8
 KV_MODE=none
 NO_BINARY_CHECK=true
 SHOULD_LINEMERGE=false
 category=Structured
 description=DHCP CSV
 disabled=false
 pulldown_type=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is why it worked when you manually uploaded the data, but not when you did it the "normal way" - some of the settings must happen at input time (forwarder), and some at parsing time (indexer), and some at search time (search head).&lt;/P&gt;

&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-isn-t-parsing-DHCP-data-correctlyon-indexer-but-does/m-p/254973#M48962</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2020-09-29T09:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: sourcetype isn't parsing DHCP data correctlyon indexer but does when I manually add on search head</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-isn-t-parsing-DHCP-data-correctlyon-indexer-but-does/m-p/254974#M48963</link>
      <description>&lt;P&gt;worked perfectly - thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 12:10:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-isn-t-parsing-DHCP-data-correctlyon-indexer-but-does/m-p/254974#M48963</guid>
      <dc:creator>rusty009</dc:creator>
      <dc:date>2016-04-04T12:10:05Z</dc:date>
    </item>
  </channel>
</rss>

