<?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: Remove DHCP Header in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Remove-DHCP-Header/m-p/19503#M88571</link>
    <description>&lt;P&gt;Thanks for the help!&lt;BR /&gt;&lt;BR /&gt;
Here is what I did;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;Changes to transforms.conf:&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[AutoHeader-DhcpLog]&lt;BR /&gt;
FIELDS="ID","Date","Time","Description","IP Address","Host Name","MAC Address"&lt;BR /&gt;
DELIMS=","&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;#Delete all events that are not filtered with following statement&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;#Filter all Events that starts with an ID, Date and Time and send them to the index queue&lt;BR /&gt;
[setparsing]&lt;BR /&gt;
REGEX =  \d\d\,\d\d\/\d\d\/\d\d\,\d\d\:\d\d\:\d\d&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;FORMAT = indexQueue&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;Changes to props.conf:&lt;BR /&gt;
[DhcpLog]&lt;BR /&gt;
CHECK_FOR_HEADER = TRUE&lt;BR /&gt;
BREAK_ONLY_BEFORE = \d\d\,\d\d\/\d\d\/\d\d\,\d\d\:\d\d\:\d\d&lt;BR /&gt;
REPORT-AutoHeader = AutoHeader-DhcpLog&lt;BR /&gt;
TRANSFORMS-set= setnull,setparsing&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;Just in case somebody can use it! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Happy Splunking!&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2010 19:08:37 GMT</pubDate>
    <dc:creator>simuvid</dc:creator>
    <dc:date>2010-07-27T19:08:37Z</dc:date>
    <item>
      <title>Remove DHCP Header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-DHCP-Header/m-p/19501#M88569</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;

&lt;P&gt;as DHCP logfiles contain huge headers, with always the same information, i will remove them, befor indexing the log events.&lt;/P&gt;

&lt;P&gt;Any idea how to do that?&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2010 20:33:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-DHCP-Header/m-p/19501#M88569</guid>
      <dc:creator>simuvid</dc:creator>
      <dc:date>2010-07-23T20:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Remove DHCP Header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-DHCP-Header/m-p/19502#M88570</link>
      <description>&lt;P&gt;You'll need to do a couple of things.&lt;/P&gt;

&lt;P&gt;Firstly, partition your DHCP data into two events as best you can - separating the salient data from the repeating headers. You can do this by setting the right LINE_BREAKER/MUST_BREAK_AFTER/BREAK_ONLY_BEFORE in props.conf&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.1/Admin/Propsconf" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You then need to discard the trash event by sending it to the nullQueue, as described here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.1.4/Admin/Routeandfilterdata" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.4/Admin/Routeandfilterdata&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2010 01:10:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-DHCP-Header/m-p/19502#M88570</guid>
      <dc:creator>parallaxed</dc:creator>
      <dc:date>2010-07-27T01:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove DHCP Header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-DHCP-Header/m-p/19503#M88571</link>
      <description>&lt;P&gt;Thanks for the help!&lt;BR /&gt;&lt;BR /&gt;
Here is what I did;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;Changes to transforms.conf:&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[AutoHeader-DhcpLog]&lt;BR /&gt;
FIELDS="ID","Date","Time","Description","IP Address","Host Name","MAC Address"&lt;BR /&gt;
DELIMS=","&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;#Delete all events that are not filtered with following statement&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;#Filter all Events that starts with an ID, Date and Time and send them to the index queue&lt;BR /&gt;
[setparsing]&lt;BR /&gt;
REGEX =  \d\d\,\d\d\/\d\d\/\d\d\,\d\d\:\d\d\:\d\d&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;FORMAT = indexQueue&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;Changes to props.conf:&lt;BR /&gt;
[DhcpLog]&lt;BR /&gt;
CHECK_FOR_HEADER = TRUE&lt;BR /&gt;
BREAK_ONLY_BEFORE = \d\d\,\d\d\/\d\d\/\d\d\,\d\d\:\d\d\:\d\d&lt;BR /&gt;
REPORT-AutoHeader = AutoHeader-DhcpLog&lt;BR /&gt;
TRANSFORMS-set= setnull,setparsing&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;Just in case somebody can use it! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Happy Splunking!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2010 19:08:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-DHCP-Header/m-p/19503#M88571</guid>
      <dc:creator>simuvid</dc:creator>
      <dc:date>2010-07-27T19:08:37Z</dc:date>
    </item>
  </channel>
</rss>

