<?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 How to remove header of a log? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437967#M76358</link>
    <description>&lt;P&gt;as I edit props.conf &amp;amp; transforms.conf to remove header of log , but it didn't work&lt;BR /&gt;
here is my config:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
TRANSFORMS-skiphdr= setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = 
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there any idea or suggestion?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 09:30:35 GMT</pubDate>
    <dc:creator>sabaKhadivi</dc:creator>
    <dc:date>2019-03-12T09:30:35Z</dc:date>
    <item>
      <title>How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437967#M76358</link>
      <description>&lt;P&gt;as I edit props.conf &amp;amp; transforms.conf to remove header of log , but it didn't work&lt;BR /&gt;
here is my config:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
TRANSFORMS-skiphdr= setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = 
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there any idea or suggestion?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 09:30:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437967#M76358</guid>
      <dc:creator>sabaKhadivi</dc:creator>
      <dc:date>2019-03-12T09:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437968#M76359</link>
      <description>&lt;P&gt;The REGEX line does not show anything. Is this correct? If not, use the Code Sample formatting for displaying special characters.&lt;BR /&gt;
You will need a proper regular expression.&lt;BR /&gt;
It will help us if you post the log header (anonymized).&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 09:50:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437968#M76359</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2019-03-12T09:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437969#M76360</link>
      <description>&lt;P&gt;Your &lt;CODE&gt;REGEX =&lt;/CODE&gt; does not contain anything.&lt;/P&gt;

&lt;P&gt;If there is a header string you can identify, add this to the regex.&lt;/P&gt;

&lt;P&gt;For example, if the first line of your log was:&lt;BR /&gt;
-------Start of Log------&lt;BR /&gt;
you might set &lt;CODE&gt;REGEX = \-+Start of Log\-+&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 09:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437969#M76360</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-12T09:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437970#M76361</link>
      <description>&lt;P&gt;yes ,I add the regex of unused part of log&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 10:18:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437970#M76361</guid>
      <dc:creator>sabaKhadivi</dc:creator>
      <dc:date>2019-03-12T10:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437971#M76362</link>
      <description>&lt;P&gt;@whrg Mar 12 13:44:04 10.10.10.5 1 &lt;BR /&gt;
this is the useless part of my log which I want to remove, I put regex of it infront of Regex = &lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 10:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437971#M76362</guid>
      <dc:creator>sabaKhadivi</dc:creator>
      <dc:date>2019-03-12T10:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437972#M76363</link>
      <description>&lt;P&gt;When you post code (or regex) use the code tool to make sure it’s is formatted/displayed. &lt;/P&gt;

&lt;P&gt;The code tool is the icon which looks like &lt;CODE&gt;101010&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 10:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437972#M76363</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-12T10:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437973#M76364</link>
      <description>&lt;P&gt;I'm assuming you put the correct regex in REGEX. See @nickhillscpl  answer.&lt;/P&gt;

&lt;P&gt;Here are some more ideas:&lt;/P&gt;

&lt;P&gt;Remember to restart Splunk after making changes to configuration fies.&lt;/P&gt;

&lt;P&gt;Also, you must put these settings on your Heavy Forwarder / Indexer. I will not work on a Universal Forwarder.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 10:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437973#M76364</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2019-03-12T10:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437974#M76365</link>
      <description>&lt;P&gt;@whrg   yes,It's heavy forwarder , and I restart splunk service after changes.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 10:33:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437974#M76365</guid>
      <dc:creator>sabaKhadivi</dc:creator>
      <dc:date>2019-03-12T10:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437975#M76366</link>
      <description>&lt;P&gt;Can you post a copy of the log header and your regex - please use the code formatter which looks like &lt;CODE&gt;101010&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 10:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437975#M76366</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-12T10:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437976#M76367</link>
      <description>&lt;P&gt;Mar 12 14:52:42 x.x.x.x 1 2019-03-12T14:52:42Z x.x.x.x s1 ;&lt;/P&gt;

&lt;P&gt;this is the header that I need to remove from Mar to 1   and this is my regex (x are octet of IP Add)&lt;/P&gt;

&lt;P&gt;^(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s([0-2]\d|3[0-1])\s[0-2]\d:[0-5]\d:[0-5]\d x.x.x.x\s1\s&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 11:27:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437976#M76367</guid>
      <dc:creator>sabaKhadivi</dc:creator>
      <dc:date>2019-03-12T11:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437977#M76368</link>
      <description>&lt;P&gt;REGEX = ^(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s([0-2]\d|3[0-1])\s[0-2]\d:[0-5]\d:[0-5]\d 10.10.10.5\s1\s&lt;/P&gt;

&lt;P&gt;useless part of my log is:&lt;BR /&gt;
Mar 12 15:11:57 10.10.10.5 1&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 11:42:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437977#M76368</guid>
      <dc:creator>sabaKhadivi</dc:creator>
      <dc:date>2019-03-12T11:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437978#M76369</link>
      <description>&lt;P&gt;@nickhillscpl &lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 05:31:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437978#M76369</guid>
      <dc:creator>sabaKhadivi</dc:creator>
      <dc:date>2019-03-13T05:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437979#M76370</link>
      <description>&lt;P&gt;Your REGEX looks too complicated. Try to simplify/shorten it.&lt;BR /&gt;
Use &lt;A href="https://regex101.com/"&gt;regex101.com&lt;/A&gt; for testing. I noticed that your regex does not match because of the \s at the end.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 09:54:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437979#M76370</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2019-03-13T09:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437980#M76371</link>
      <description>&lt;P&gt;Try this regex: &lt;CODE&gt;^\w{3}\s\d+\s\d{2}:\d{2}:\d{2}\s\d+\.\d+\.\d+\.\d+\s\d&lt;/CODE&gt;&lt;BR /&gt;
&lt;A href="https://regex101.com/r/TwH2pp/1"&gt;https://regex101.com/r/TwH2pp/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 09:59:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437980#M76371</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-13T09:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove header of a log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437981#M76372</link>
      <description>&lt;P&gt;@nickhillscpl &lt;BR /&gt;
tnx for your answer, I give the result with SEDCMD in props.conf&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2019 12:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-header-of-a-log/m-p/437981#M76372</guid>
      <dc:creator>sabaKhadivi</dc:creator>
      <dc:date>2019-03-16T12:12:00Z</dc:date>
    </item>
  </channel>
</rss>

