<?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: Why does PREAMBLE_REGEX work on Windows Splunk but not Linux Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-PREAMBLE-REGEX-work-on-Windows-Splunk-but-not-Linux/m-p/332710#M159746</link>
    <description>&lt;P&gt;Thanks for the input.  The REGEX works but doesn't solve the problem.  I've found what I was looking for here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/209824/how-to-get-splunk-to-ignore-the-second-line-of-a-l.html"&gt;https://answers.splunk.com/answers/209824/how-to-get-splunk-to-ignore-the-second-line-of-a-l.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Suggestion was to use a null-queue transform by modifying &lt;CODE&gt;props.conf&lt;/CODE&gt; and &lt;CODE&gt;transforms.conf&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2017 15:26:17 GMT</pubDate>
    <dc:creator>andrewtrobec</dc:creator>
    <dc:date>2017-08-03T15:26:17Z</dc:date>
    <item>
      <title>Why does PREAMBLE_REGEX work on Windows Splunk but not Linux Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-PREAMBLE-REGEX-work-on-Windows-Splunk-but-not-Linux/m-p/332708#M159744</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am currently using the following REGEX for &lt;CODE&gt;PREAMBLE_REGEX&lt;/CODE&gt; in &lt;CODE&gt;props.conf&lt;/CODE&gt; which works on Splunk 6.4.x running on Windows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(^|[\r\n])(Job\.Description[^\r\n]+|String[^\r\n]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is used to tell Splunk to skip the second and third lines of log files which always start:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Job.Description,Job.NumJobWaitEvents...
String,Integer,Integer...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've since migrated my app to a Splunk 6.4.x instance running on Linux, but it doesn't work anymore (the lines aren't ignored).  What changes should I be looking out for to ensure that the regular expression works in Linux as well?&lt;/P&gt;

&lt;P&gt;Thank you and best regards,&lt;/P&gt;

&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 09:34:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-PREAMBLE-REGEX-work-on-Windows-Splunk-but-not-Linux/m-p/332708#M159744</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2017-07-28T09:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why does PREAMBLE_REGEX work on Windows Splunk but not Linux Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-PREAMBLE-REGEX-work-on-Windows-Splunk-but-not-Linux/m-p/332709#M159745</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^(Job\.Description.+|String,.+)$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It should work the same way as your regex, but it's simpler. That might make a difference.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 09:53:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-PREAMBLE-REGEX-work-on-Windows-Splunk-but-not-Linux/m-p/332709#M159745</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-07-28T09:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why does PREAMBLE_REGEX work on Windows Splunk but not Linux Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-PREAMBLE-REGEX-work-on-Windows-Splunk-but-not-Linux/m-p/332710#M159746</link>
      <description>&lt;P&gt;Thanks for the input.  The REGEX works but doesn't solve the problem.  I've found what I was looking for here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/209824/how-to-get-splunk-to-ignore-the-second-line-of-a-l.html"&gt;https://answers.splunk.com/answers/209824/how-to-get-splunk-to-ignore-the-second-line-of-a-l.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Suggestion was to use a null-queue transform by modifying &lt;CODE&gt;props.conf&lt;/CODE&gt; and &lt;CODE&gt;transforms.conf&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 15:26:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-PREAMBLE-REGEX-work-on-Windows-Splunk-but-not-Linux/m-p/332710#M159746</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2017-08-03T15:26:17Z</dc:date>
    </item>
  </channel>
</rss>

