<?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: REGEX format to remove unwanted log data using specific text with quotes and spaces in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243838#M72567</link>
    <description>&lt;P&gt;Ok.. so based on where they (the pattern) appear in your data, use the appropriate REGEX. If your actual events starts with the pattern you posted, @DMohn's answer should do the trick. If they do not , remove the caret sign &lt;CODE&gt;"^"&lt;/CODE&gt; from REGEX.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2016 20:58:47 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-03-10T20:58:47Z</dc:date>
    <item>
      <title>REGEX format to remove unwanted log data using specific text with quotes and spaces</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243832#M72561</link>
      <description>&lt;P&gt;I have a log that sends ( eventtype=dlp level=notice vd="PERIM" filteridx=0 filtertype=none filtercat=none severity=medium ) without the ( or )  and would like to know the regex format to use in transforms.conf to send it to the nullQueue. Any help would be greatly appreciated.  &lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 16:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243832#M72561</guid>
      <dc:creator>srunyon</dc:creator>
      <dc:date>2016-03-09T16:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX format to remove unwanted log data using specific text with quotes and spaces</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243833#M72562</link>
      <description>&lt;P&gt;So this is your actual raw data from the log file?/&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=dlp level=notice vd="PERIM" filteridx=0 filtertype=none filtercat=none severity=medium 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Mar 2016 16:51:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243833#M72562</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-09T16:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX format to remove unwanted log data using specific text with quotes and spaces</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243834#M72563</link>
      <description>&lt;P&gt;Yes, including the beginning and ending spaces.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 17:58:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243834#M72563</guid>
      <dc:creator>srunyon</dc:creator>
      <dc:date>2016-03-09T17:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX format to remove unwanted log data using specific text with quotes and spaces</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243835#M72564</link>
      <description>&lt;P&gt;This Splunk doc should give you all the configurations that you need to configure for this event filtering.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The regex could be &lt;CODE&gt;^\s*eventtype=dlp&lt;/CODE&gt;. Again, we're not sure if this will filter other events as well, so please provide some more samples of both the logs, one you want to keep and one you want to discard.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 18:11:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243835#M72564</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-09T18:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX format to remove unwanted log data using specific text with quotes and spaces</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243836#M72565</link>
      <description>&lt;P&gt;If you really need to capture this &lt;EM&gt;exact&lt;/EM&gt; event, you can use the following config:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [your_sourcetype_stanza]
 TRANSFORMS-null1 = eliminate_events
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [eliminate_events]
 REGEX=^\seventtype=dlp\slevel=notice\svd=\"PERIM\"\sfilteridx=0\sfiltertype=none\sfiltercat=none\sseverity=medium\s$
 DEST_KEY=queue
 FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could still check if you may shorten the regex somehow, or make it mire flexible, if the events to be sent to nullQueue vary slightly.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 18:35:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243836#M72565</guid>
      <dc:creator>DMohn</dc:creator>
      <dc:date>2016-03-09T18:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX format to remove unwanted log data using specific text with quotes and spaces</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243837#M72566</link>
      <description>&lt;P&gt;To answer you point, I included only the part of the message that is consistent within the data that I do not want to index.  This should ensure that I do not discard any valid messages.  &lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 20:17:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243837#M72566</guid>
      <dc:creator>srunyon</dc:creator>
      <dc:date>2016-03-10T20:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX format to remove unwanted log data using specific text with quotes and spaces</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243838#M72567</link>
      <description>&lt;P&gt;Ok.. so based on where they (the pattern) appear in your data, use the appropriate REGEX. If your actual events starts with the pattern you posted, @DMohn's answer should do the trick. If they do not , remove the caret sign &lt;CODE&gt;"^"&lt;/CODE&gt; from REGEX.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 20:58:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243838#M72567</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-10T20:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX format to remove unwanted log data using specific text with quotes and spaces</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243839#M72568</link>
      <description>&lt;P&gt;I see how the regex should work.  I tried using both a [] and [source::] definitions but I am still getting the events.  I can only guess that I am either placing the profs.conf and transforms.conf in the wrong location.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 14:58:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-format-to-remove-unwanted-log-data-using-specific-text/m-p/243839#M72568</guid>
      <dc:creator>srunyon</dc:creator>
      <dc:date>2016-03-11T14:58:11Z</dc:date>
    </item>
  </channel>
</rss>

