<?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: Help with extracting and filtering header preambles in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-extracting-and-filtering-header-preambles/m-p/254552#M48885</link>
    <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;P&gt;props.conf on Indexer/Heavy forwarder&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourceytpe]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)\d+\:\d+\:\d+
...other time format settings---
TRANSFORMS-removeheaderevent = setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf on Indexer/Heavy forwarder&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = ^\w+
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 18 Mar 2016 15:05:49 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-03-18T15:05:49Z</dc:date>
    <item>
      <title>Help with extracting and filtering header preambles</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-extracting-and-filtering-header-preambles/m-p/254551#M48884</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We have an ugly custom log file, and we'd like to filter out the beginning of the file.  We'd like to start from the first line, down to the first line with a valid timestamp.  Is that possible?  &lt;/P&gt;

&lt;P&gt;Here's a sample:&lt;/P&gt;

&lt;P&gt;Lots of lines like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Application Name:               Email_MMK_Node3_PR
Application Type:               EMAIL_SERVER
Application stuff....
....
Application Options: {
  { pop-client ['password' [output suppressed], 'move-failed-ews-item' [str] = "true", 'protocol-timeout' [str] = "00:05:00", 'maximum-msg-size' [str] = "5", 'type' [str] = "IMAP", 'address' [str] = "#", 'exchange-version' [str] = "Exchange2010_SP2", 'endpoint' [str] = "default", 'folder-path' [str] = "INBOX", 'leave-msg-on-server' [str] = "false", 'folder-separator' [str] = "/", 'port' [str] = "995", 'delete-bad-formatted-msg' [str] = "false", 'failed-items-folder-name' [str] = "", 'pop-connection-security' [str] = "none", 'enable-debug' [str] = "false", 'connect-timeout' [str] = "00:00:30", 'cycle-time' [str] = "00:00:30", 'mailbox' [str] = "#", 'enable-big-msg-stripping' [str] = "false", 'server' [str] = "imap.blah.blah.com", 'delete-big-msg' [str] = "false", 'enable-client' [str] = "false", 'allow-bad-msg-size' [str] = "false", 'maximum-msg-number' [str] = "500", ]}
  { pop-client-aaargprations ['password' [output suppressed], 'move-failed-ews-item' [str] = "true", 'protocol-timeout' [str] = "00:05:00", 'maximum-msg-size' [str] = "5", 'type' [str] = "IMAP", 'address' [str] = "anotherfield.com", 'exchange-version' [str] = "Exchange2010_SP2", 'endpoint' [str] = "blahblahIn_Endpoint", 'folder-path' [str] = "INBOX", 'leave-msg-on-server' [str] = "true", 'folder-separator' [str] = "/", 'port' [str] = "993", 'delete-bad-formatted-msg' [str] = "false", 'failed-items-folder-name' [str] = "failedItems", 'pop-connection-security' [str] = "ssl-tls", 'connect-timeout' [str] = "00:00:30", 'enable-debug' [str] = "false", 'cycle-time' [str] = "00:00:30", 'mailbox' [str] = "1234rkrgprations", 'enable-big-msg-stripping' [str] = "false", 'server' [str] = "blah.server.com", 'delete-big-msg' [str] = "false", 'enable-client' [str] = "false", 'allow-bad-msg-size' [str] = "false", 'maximum-msg-number' [str] = "500", ]}
}

23:11:14.972 Dbg 29999 [EmailServer] Configuring 'MESSAGE_SERVER' connection
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 14:32:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-extracting-and-filtering-header-preambles/m-p/254551#M48884</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2016-03-18T14:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with extracting and filtering header preambles</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-extracting-and-filtering-header-preambles/m-p/254552#M48885</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;P&gt;props.conf on Indexer/Heavy forwarder&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourceytpe]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)\d+\:\d+\:\d+
...other time format settings---
TRANSFORMS-removeheaderevent = setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf on Indexer/Heavy forwarder&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = ^\w+
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Mar 2016 15:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-extracting-and-filtering-header-preambles/m-p/254552#M48885</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-18T15:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with extracting and filtering header preambles</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-extracting-and-filtering-header-preambles/m-p/254553#M48886</link>
      <description>&lt;P&gt;Can you elaborate?  What is the regex doing? &lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 15:47:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-extracting-and-filtering-header-preambles/m-p/254553#M48886</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2016-03-18T15:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with extracting and filtering header preambles</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-extracting-and-filtering-header-preambles/m-p/254554#M48887</link>
      <description>&lt;P&gt;The props.conf is splitting your logs in the events, where events will start with timesamp (23:11:14.972 in above example). This will give one extra large events with all the header preamble text. The TRANSFORMS will just find that huge header event, which I assume start with some word and not with timestamp, and will drop that events. (see this for transforms usage &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.2/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 16:01:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-extracting-and-filtering-header-preambles/m-p/254554#M48887</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-18T16:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with extracting and filtering header preambles</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-extracting-and-filtering-header-preambles/m-p/254555#M48888</link>
      <description>&lt;P&gt;Thanks.  Interesting approach.  Never considered it.  &lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 18:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-extracting-and-filtering-header-preambles/m-p/254555#M48888</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2016-03-18T18:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with extracting and filtering header preambles</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-extracting-and-filtering-header-preambles/m-p/254556#M48889</link>
      <description>&lt;P&gt;For anyone who stumbles on this in the future with similar questions, remember that you can tinker with the sourcetype definition with the Add Data wizard. The Advanced panel of the Set Source Type menu is where you can tinker and see how splunk would interpret the results.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 14:53:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-extracting-and-filtering-header-preambles/m-p/254556#M48889</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-03-21T14:53:49Z</dc:date>
    </item>
  </channel>
</rss>

